UNPKG

map-transform

Version:

Map and transform objects with mapping definitions

9 lines 658 B
export const isObject = (value) => Object.prototype.toString.call(value) === '[object Object]'; export const isDate = (value) => Object.prototype.toString.call(value) === '[object Date]'; export const isString = (value) => typeof value === 'string'; export const isPath = (value) => typeof value === 'string'; export const isArrayPath = (value) => isPath(value) && value.endsWith('[]'); export const isNullOrUndefined = (value) => value === null || value === undefined; export const isNotNullOrUndefined = (value) => !isNullOrUndefined(value); export const isNonEmptyArray = (value) => Array.isArray(value) && value.length > 0; //# sourceMappingURL=is.js.map