d2-utilizr
Advanced tools
Comparing version
{ | ||
"name": "d2-utilizr", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -8,3 +8,3 @@ "main": "./src/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "./node_modules/babel/bin/babel.js src/index.js -o index.js" | ||
"build": "./node_modules/babel-cli/bin/babel.js src/index.js -o index.js" | ||
}, | ||
@@ -22,4 +22,4 @@ "repository": { | ||
"devDependencies": { | ||
"babel": "6.3.13" | ||
"babel-cli": "6.3.15" | ||
} | ||
} |
@@ -207,6 +207,6 @@ // type | ||
// dependency: isString, isNumber, isArray | ||
export function arraySort = function(array, direction, key, emptyFirst) { | ||
export function arraySort(array, direction, key, emptyFirst) { | ||
// supports [number], [string], [{key: number}], [{key: string}], [[string]], [[number]] | ||
if (!isArray(array) { | ||
if (!isArray(array)) { | ||
return; | ||
@@ -261,2 +261,2 @@ } | ||
return array; | ||
}; | ||
} |
7152
-0.04%