UNPKG

map-transform-cjs

Version:
18 lines 643 B
// src/utils/is.ts var isObject = (value) => Object.prototype.toString.call(value) === "[object Object]"; var isString = (value) => typeof value === "string"; var isPath = (value) => typeof value === "string"; var isArrayPath = (value) => isPath(value) && value.endsWith("[]"); var isNullOrUndefined = (value) => value === null || value === void 0; var isNotNullOrUndefined = (value) => !isNullOrUndefined(value); var isNonEmptyArray = (value) => Array.isArray(value) && value.length > 0; export { isArrayPath, isNonEmptyArray, isNotNullOrUndefined, isNullOrUndefined, isObject, isPath, isString }; //# sourceMappingURL=is.js.map