New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remeda

Package Overview
Dependencies
Maintainers
2
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remeda - npm Package Compare versions

Comparing version 1.25.2 to 1.26.0

2

dist/commonjs/isEmpty.d.ts

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

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