Comparing version 12.2.7 to 12.2.9
@@ -298,3 +298,3 @@ export { | ||
} | ||
return validateArrayLike(arr1, arr2); | ||
return validateArrayLike(a, b); | ||
} | ||
@@ -301,0 +301,0 @@ |
@@ -0,0 +0,0 @@ Creative Commons Legal Code |
{ | ||
"name": "utilsac", | ||
"version": "12.2.7", | ||
"version": "12.2.9", | ||
"description": "Utility functions", | ||
"license": "CC0-1.0", | ||
"type": "module", | ||
@@ -13,25 +14,8 @@ "main": "utility.js", | ||
}, | ||
"files": [ | ||
"typeCast.js", | ||
"evalGlobal.js", | ||
"blobs.js", | ||
"utility.js", | ||
"deep.js", | ||
"readme.md", | ||
"license.txt", | ||
"changelog.md" | ||
], | ||
"keywords": [ | ||
"utility", | ||
"deep", | ||
"equal", | ||
"copy", | ||
"assign", | ||
"memoize", | ||
"type", | ||
"cast", | ||
"eval", | ||
"global" | ||
], | ||
"license": "CC0-1.0", | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"eslint": "^6.5.1", | ||
"eslint-config-red": "^1.4.1", | ||
"leistung": "^2.0.0" | ||
}, | ||
"eslintConfig": { | ||
@@ -47,16 +31,6 @@ "extends": [ | ||
"env": { | ||
"es6": true, | ||
"es2020": true, | ||
"browser": true | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/GrosSacASac/utilsac.git" | ||
}, | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"eslint": "^6.5.1", | ||
"eslint-config-red": "^1.4.1", | ||
"leistung": "^2.0.0" | ||
}, | ||
"ava": { | ||
@@ -82,3 +56,29 @@ "files": [ | ||
"compileEnhancements": false | ||
} | ||
}, | ||
"files": [ | ||
"typeCast.js", | ||
"evalGlobal.js", | ||
"blobs.js", | ||
"utility.js", | ||
"deep.js", | ||
"readme.md", | ||
"license.txt", | ||
"changelog.md" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/GrosSacASac/utilsac.git" | ||
}, | ||
"keywords": [ | ||
"utility", | ||
"deep", | ||
"equal", | ||
"copy", | ||
"assign", | ||
"memoize", | ||
"type", | ||
"cast", | ||
"eval", | ||
"global" | ||
] | ||
} |
@@ -40,13 +40,15 @@ export { | ||
const stringFromArray = function (array, sep = ` `) { | ||
return array.reduce((total, item) => `${total}${sep}${item}`); | ||
} | ||
return array.join(sep); | ||
}; | ||
const setFromArray = (array) => new Set(array); | ||
const setFromArray = (array) => { | ||
return new Set(array); | ||
}; | ||
const mapFromObject = function (obj) { | ||
let m = new Map(); | ||
for (let key in obj) { | ||
const m = new Map(); | ||
for (const key in obj) { | ||
m.set(key, obj[key]); | ||
} | ||
return m; | ||
} | ||
}; |
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
30962
621