REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.20 KB
Close
/home/byroehnu/easepay.easetack.com/node_modules/memoize-one/src/are-inputs-equal.ts
Text
Base64
// Number.isNaN as it is not supported in IE11 so conditionally using ponyfill // Using Number.isNaN where possible as it is ~10% faster const safeIsNaN = Number.isNaN || function ponyfill(value: unknown): boolean { // // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN#polyfill // NaN is the only value in JavaScript which is not equal to itself. return typeof value === 'number' && value !== value; }; function isEqual(first: unknown, second: unknown): boolean { if (first === second) { return true; } // Special case for NaN (NaN !== NaN) if (safeIsNaN(first) && safeIsNaN(second)) { return true; } return false; } export default function areInputsEqual( newInputs: readonly unknown[], lastInputs: readonly unknown[], ): boolean { // no checks needed if the inputs length has changed if (newInputs.length !== lastInputs.length) { return false; } // Using for loop for speed. It generally performs better than array.every // https://github.com/alexreardon/memoize-one/pull/59 for (let i = 0; i < newInputs.length; i++) { if (!isEqual(newInputs[i], lastInputs[i])) { return false; } } return true; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
are-inputs-equal.ts
1.20 KB
lrw-r--r--
2026-02-28 00:28:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
memoize-one.js.flow
343 B
lrw-r--r--
2026-02-28 00:26:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
memoize-one.ts
1.58 KB
lrw-r--r--
2026-02-28 00:28:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).