function loadLocale(name) {
var oldLocale = null;
// TODO: Find a better way to register and load all the locales in Node
- if (!locales[name] && (typeof module !== "undefined") &&
+ if (!locales[name] && (typeof module !== 'undefined') &&
module && module.exports) {
try {
oldLocale = globalLocale._abbr;
function warn(msg) {
if (hooks.suppressDeprecationWarnings === false &&
- (typeof console !== "undefined") && console.warn) {
+ (typeof console !== 'undefined') && console.warn) {
console.warn('Deprecation warning: ' + msg);
}
}