Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@corefunc/corefunc

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corefunc/corefunc - npm Package Compare versions

Comparing version 0.0.31 to 0.0.32

array/is/empty.cjs

6

array/basic/hasSame.ts

@@ -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) {

2

check/isObjectLike.ts
/**
* @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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc