PHP 8.2.30
Preview: memoize-one.js.flow Size: 343 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/memoize-one/src/memoize-one.js.flow

// @flow

// These types are not as powerful as the TypeScript types, but they get the job done

export type EqualityFn = (newArgs: mixed[], lastArgs: mixed[]) => boolean;

// default export
declare export default function memoizeOne<ResultFn: (...any[]) => mixed>(
  fn: ResultFn,
  isEqual?: EqualityFn,
): ResultFn & { clear: () => void };

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
1.20 KB lrw-r--r-- 2026-02-28 00:28:02
Edit Download
343 B lrw-r--r-- 2026-02-28 00:26:56
Edit Download
1.58 KB lrw-r--r-- 2026-02-28 00:28:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).