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4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Collection of 70+ type, feature & value checks
thi.ng/checks
thi-ng/umbrella
@thi.ng/checks
/
is-transferable.js
5 lines
(4 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
const
isTransferable
= (
x
) => x
instanceof
ArrayBuffer
||
typeof
SharedArrayBuffer
!==
"undefined"
&& x
instanceof
SharedArrayBuffer
||
typeof
MessagePort
!==
"undefined"
&& x
instanceof
MessagePort
;
export
{ isTransferable };