Comparing version 1.25.2 to 1.26.0
@@ -1,4 +0,4 @@ | ||
export declare function isEmpty(data: string): data is ''; | ||
export declare function isEmpty<T extends string | undefined>(data: T): data is ('' extends T ? '' : never) | (undefined extends T ? undefined : never); | ||
export declare function isEmpty(data: ReadonlyArray<unknown> | []): data is []; | ||
export declare function isEmpty<T extends Readonly<Record<PropertyKey, unknown>>>(data: T): data is Record<keyof T, never>; | ||
//# sourceMappingURL=isEmpty.d.ts.map |
@@ -8,2 +8,5 @@ "use strict"; | ||
function isEmpty(data) { | ||
if (data === undefined) { | ||
return true; | ||
} | ||
if ((0, isArray_1.isArray)(data) || (0, isString_1.isString)(data)) { | ||
@@ -10,0 +13,0 @@ return data.length === 0; |
@@ -1,4 +0,4 @@ | ||
export declare function isEmpty(data: string): data is ''; | ||
export declare function isEmpty<T extends string | undefined>(data: T): data is ('' extends T ? '' : never) | (undefined extends T ? undefined : never); | ||
export declare function isEmpty(data: ReadonlyArray<unknown> | []): data is []; | ||
export declare function isEmpty<T extends Readonly<Record<PropertyKey, unknown>>>(data: T): data is Record<keyof T, never>; | ||
//# sourceMappingURL=isEmpty.d.ts.map |
@@ -5,2 +5,5 @@ import { isArray } from './isArray'; | ||
export function isEmpty(data) { | ||
if (data === undefined) { | ||
return true; | ||
} | ||
if (isArray(data) || isString(data)) { | ||
@@ -7,0 +10,0 @@ return data.length === 0; |
{ | ||
"name": "remeda", | ||
"version": "1.25.2", | ||
"version": "1.26.0", | ||
"description": "A utility library for JavaScript and Typescript.", | ||
@@ -39,2 +39,3 @@ "main": "dist/commonjs/index.js", | ||
"docs:install": "cd docs && yarn", | ||
"docs:lint": "eslint -c docs/.eslintrc.cjs --ext .ts --ext .tsx docs/src ", | ||
"docs:fix": "rm -rf node_modules/typedoc/node_modules/typescript", | ||
@@ -41,0 +42,0 @@ "docs:generate-ts": "typedoc --json out.json --excludeNotExported src", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
455547
6482