@aesthetic/utils
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -69,2 +69,6 @@ import extend from 'extend'; | ||
function isSSR() { | ||
return typeof window === 'undefined' || typeof document === 'undefined'; | ||
} | ||
function objectLoop(object, callback) { | ||
@@ -94,2 +98,2 @@ arrayLoop(Object.keys(object), function (key) { | ||
export { arrayLoop, arrayReduce, deepMerge, generateHash, hyphenate, isObject, objectLoop, objectReduce, toArray }; | ||
export { arrayLoop, arrayReduce, deepMerge, generateHash, hyphenate, isObject, isSSR, objectLoop, objectReduce, toArray }; |
@@ -11,6 +11,7 @@ /** | ||
import isObject from './isObject'; | ||
import isSSR from './isSSR'; | ||
import objectLoop from './objectLoop'; | ||
import objectReduce from './objectReduce'; | ||
import toArray from './toArray'; | ||
export { arrayLoop, arrayReduce, deepMerge, generateHash, hyphenate, isObject, objectLoop, objectReduce, toArray, }; | ||
export { arrayLoop, arrayReduce, deepMerge, generateHash, hyphenate, isObject, isSSR, objectLoop, objectReduce, toArray, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -75,2 +75,6 @@ 'use strict'; | ||
function isSSR() { | ||
return typeof window === 'undefined' || typeof document === 'undefined'; | ||
} | ||
function objectLoop(object, callback) { | ||
@@ -106,4 +110,5 @@ arrayLoop(Object.keys(object), function (key) { | ||
exports.isObject = isObject; | ||
exports.isSSR = isSSR; | ||
exports.objectLoop = objectLoop; | ||
exports.objectReduce = objectReduce; | ||
exports.toArray = toArray; |
{ | ||
"name": "@aesthetic/utils", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Utility functions for Aesthetic.", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "a393b3217528ac5abddaf812927aebb5d14de426" | ||
"gitHead": "9ec9db033887e32ea1b5d5dfcb4e5c87dad3dfc3" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12084
29
188