arrays.d.ts 272 B

12345
  1. export declare const unique: <T>(arr: T[]) => T[];
  2. type Many<T> = T | ReadonlyArray<T>;
  3. /** like `_.castArray`, except falsy value returns empty array. */
  4. export declare const castArray: <T>(arr: Many<T>) => T[];
  5. export { castArray as ensureArray } from 'lodash-unified';