Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antfu/utils

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antfu/utils - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

16

dist/index.d.ts

@@ -6,14 +6,6 @@ /**

/**
* Null or underfind whatever
*/
declare type Nilable<T> = T | null | undefined;
/**
* Null or whatever
*/
declare type Nullable<T> = T | null;
declare type Nullable<T> = T | null | undefined;
/**
* Undefined or whatever
*/
declare type Undefineable<T> = T | undefined;
/**
* Array, or not yet

@@ -42,7 +34,7 @@ */

*/
declare function toArray<T>(array: Nullable<Arrayable<T>>): Array<T>;
declare function toArray<T>(array?: Nullable<Arrayable<T>>): Array<T>;
/**
* Convert Arrayable<T> to Array<T>
*/
declare function flattenArrayable<T>(array: Nullable<Arrayable<T | Array<T>>>): Array<T>;
declare function flattenArrayable<T>(array?: Nullable<Arrayable<T | Array<T>>>): Array<T>;
/**

@@ -157,2 +149,2 @@ * Use rest arguments to merge arrays

export { Arrayable, Awaitable, ElementOf, Fn, Nilable, Nullable, Undefineable, UnionToIntersection, assert, batchInvoke, clamp, flattenArrayable, invoke, isBoolean, isBrowser, isDef, isFunction, isKeyOf, isNumber, isObject, isString, isTruthy, isWindow, mergeArrayable, noNull, noop, notNullish, notUndefined, objectEntries, objectKeys, objectMap, partition, slash, sum, timestamp, toArray, toString };
export { Arrayable, Awaitable, ElementOf, Fn, Nullable, UnionToIntersection, assert, batchInvoke, clamp, flattenArrayable, invoke, isBoolean, isBrowser, isDef, isFunction, isKeyOf, isNumber, isObject, isString, isTruthy, isWindow, mergeArrayable, noNull, noop, notNullish, notUndefined, objectEntries, objectKeys, objectMap, partition, slash, sum, timestamp, toArray, toString };
{
"name": "@antfu/utils",
"version": "0.0.5",
"version": "0.0.6",
"description": "Opinionated collection of common JavaScript / TypeScript utils by @antfu",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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