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0.0-pre.4
2.0.0-pre.3
2.0.0-pre.2
2.0.0-pre
1.17.7
1.17.6
1.17.5
1.17.4
1.17.3
1.17.2
1.17.1
1.17.0
1.16.1
1.16.0
1.15.4
1.15.3
1.15.2
1.15.1
1.15.0
1.14.1
1.14.0
1.13.0
1.12.2
1.12.1
1.12.0
1.11.1
1.11.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.1
1.9.0
1.8.2
1.8.1
1.7.3
1.7.2
1.7.1
1.7.0
1.6.0
1.5.2
1.5.0
1.4.2
1.4.1
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.6.3
0.6.2
JavaScript test spies, stubs and mocks.
sinonjs.org
sinonjs/sinon
sinon
/
lib
/
sinon
/
util
/
core
/
is-non-existent-own-property.js
8 lines
(5 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
function
isNonExistentOwnProperty
(
object
, property
) {
return
object
&&
typeof
property !==
"undefined"
&& !(property
in
object
); }
module
.
exports
= isNonExistentOwnProperty;