@slickgrid-universal/utils
Advanced tools
Comparing version 2.6.4 to 3.0.0-beta.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.uniqueObjectArray = exports.uniqueArray = exports.toSnakeCase = exports.toSentenceCase = exports.toKebabCase = exports.toCamelCase = exports.titleCase = exports.setDeepValue = exports.removeAccentFromText = exports.parseBoolean = exports.isObjectEmpty = exports.isNumber = exports.hasData = exports.isPrimmitive = exports.isObject = exports.isEmptyObject = exports.emptyObject = exports.objectAssignAndExtend = exports.deepMerge = exports.deepCopy = exports.arrayRemoveItemByIndex = exports.addWhiteSpaces = exports.addToArrayWhenNotExists = void 0; | ||
exports.uniqueObjectArray = exports.uniqueArray = exports.toSnakeCase = exports.toSentenceCase = exports.toKebabCase = exports.toCamelCase = exports.titleCase = exports.setDeepValue = exports.removeAccentFromText = exports.parseBoolean = exports.isObjectEmpty = exports.isNumber = exports.hasData = exports.isPrimitiveValue = exports.isObject = exports.isEmptyObject = exports.emptyObject = exports.objectAssignAndExtend = exports.deepMerge = exports.deepCopy = exports.arrayRemoveItemByIndex = exports.addWhiteSpaces = exports.addToArrayWhenNotExists = void 0; | ||
/** | ||
@@ -209,6 +209,6 @@ * Add an item to an array only when the item does not exists, when the item is an object we will be using their "id" to compare | ||
*/ | ||
function isPrimmitive(val) { | ||
function isPrimitiveValue(val) { | ||
return val === null || val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string'; | ||
} | ||
exports.isPrimmitive = isPrimmitive; | ||
exports.isPrimitiveValue = isPrimitiveValue; | ||
/** | ||
@@ -215,0 +215,0 @@ * Check if a value has any data (undefined, null or empty string will return False...) |
@@ -197,3 +197,3 @@ /** | ||
*/ | ||
export function isPrimmitive(val) { | ||
export function isPrimitiveValue(val) { | ||
return val === null || val === undefined || typeof val === 'boolean' || typeof val === 'number' || typeof val === 'string'; | ||
@@ -200,0 +200,0 @@ } |
@@ -70,3 +70,3 @@ /** | ||
*/ | ||
export declare function isPrimmitive(val: any): boolean; | ||
export declare function isPrimitiveValue(val: any): boolean; | ||
/** | ||
@@ -73,0 +73,0 @@ * Check if a value has any data (undefined, null or empty string will return False...) |
{ | ||
"name": "@slickgrid-universal/utils", | ||
"version": "2.6.4", | ||
"version": "3.0.0-beta.0", | ||
"description": "Common set of small utilities", | ||
@@ -45,3 +45,3 @@ "main": "dist/commonjs/index.js", | ||
], | ||
"gitHead": "e906a95b58d12c99b9f8514d11ef9be10ba4045a" | ||
"gitHead": "5e41e42bc43f3e0d31b6076c2d2318f513c25e01" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
88553
903
1