update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
14
node_modules/ramda/es/internal/_objectIs.js
generated
vendored
Normal file
14
node_modules/ramda/es/internal/_objectIs.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
||||
function _objectIs(a, b) {
|
||||
// SameValue algorithm
|
||||
if (a === b) {
|
||||
// Steps 1-5, 7-10
|
||||
// Steps 6.b-6.e: +0 != -0
|
||||
return a !== 0 || 1 / a === 1 / b;
|
||||
} else {
|
||||
// Step 6.a: NaN == NaN
|
||||
return a !== a && b !== b;
|
||||
}
|
||||
}
|
||||
|
||||
export default typeof Object.is === 'function' ? Object.is : _objectIs;
|
Loading…
Add table
Add a link
Reference in a new issue