UNPKG
shallowequal
Version:
latest (1.1.0)
1.1.0
1.0.2
1.0.1
1.0.0
0.2.2
0.2.1
0.2.0
0.1.0
Like lodash isEqualWith but for shallow equal.
github.com/dashed/shallowequal
dashed/shallowequal
shallowequal
/
index.js.flow
9 lines
(7 loc)
•
185 B
Flow
View Raw
1
2
3
4
5
6
7
8
9
// @flow
declare
module
.
exports
: <T, U>
(
objA
?: ?T,
objB
?: ?U,
compare
?: ?(objValue:
any
, otherValue:
any
, key?:
string
) =>
boolean
|
void
,
compareContext
?: ?
any
) =>
boolean
;