@corefunc/corefunc
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -0,1 +1,7 @@ | ||
/** | ||
* @name arrayHasSame | ||
* @param {Array} alpha | ||
* @param {Array} beta | ||
* @returns {boolean} | ||
*/ | ||
export default function arrayHasSame(alpha: any[], beta: any[]): boolean { | ||
@@ -2,0 +8,0 @@ if (!alpha.length || !beta.length) { |
@@ -0,1 +1,7 @@ | ||
/** | ||
* @name arrayBasicIntersect | ||
* @param {Array} alpha | ||
* @param {Array} beta | ||
* @returns {Array} | ||
*/ | ||
export default function arrayBasicIntersect(alpha: any[], beta: any[]): any[] { | ||
@@ -2,0 +8,0 @@ if (!alpha.length || !beta.length) { |
/** | ||
* @name isObjectLike | ||
* @name checkIsObjectLike | ||
* Checks if `value` is object-like. A value is object-like if it's not `null` | ||
@@ -4,0 +4,0 @@ * and has a `typeof` result of "object". |
/** | ||
* Return true on boolean, string, number, BigInt, null, Symbol and undefined | ||
* @name isPrimitive | ||
* @description Return true on boolean, string, number, BigInt, null, Symbol and undefined | ||
* @param {*} value | ||
* @return {boolean} | ||
*/ | ||
function isPrimitive(value) { | ||
export default function isPrimitive(value: any): boolean { | ||
return Object(value) !== value; | ||
} | ||
export default isPrimitive; |
@@ -1,8 +0,6 @@ | ||
import fnToString from "lodash-es/toString"; | ||
import fnEscapeEscaped from "../string/escapeEscaped"; | ||
import castToString from "../cast/to/string"; | ||
import stringEscapeEscaped from "../string/escapeEscaped"; | ||
function cleanup(string) { | ||
return fnEscapeEscaped(fnToString(string)); | ||
export default function jsonCleanup(text: string): string { | ||
return stringEscapeEscaped(castToString(text)); | ||
} | ||
export default cleanup; |
@@ -61,3 +61,3 @@ { | ||
}, | ||
"version": "0.0.31" | ||
"version": "0.0.32" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
136227
345
4557