UNPKG
typedash
Version:
latest (3.3.3)
3.3.3
3.3.2
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
modern, type-safe collection of utility functions
github.com/bengry/typedash
bengry/typedash
typedash
/
dist
/
hasKey
/
index.cjs
13 lines
(11 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
// src/functions/hasKey/hasKey.ts
function
hasKey
(
value, key
) {
if
(
typeof
value !==
"object"
|| value ==
null
) {
return
false
; }
return
key
in
value; }
exports
.
hasKey
= hasKey;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.cjs.map