UNPKG
es6-weak-map
Version:
latest (2.0.3)
2.0.3
2.0.2
2.0.1
2.0.0
1.0.2
1.0.1
1.0.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.0
ECMAScript6 WeakMap polyfill
github.com/medikoo/es6-weak-map
medikoo/es6-weak-map
es6-weak-map
/
is-native-implemented.js
9 lines
(6 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// Exports true if environment provides native `WeakMap` implementation, whatever that is.
"use strict"
;
module
.
exports
= (
function
(
) {
if
(
typeof
WeakMap
!==
"function"
)
return
false
;
return
Object
.
prototype
.
toString
.
call
(
new
WeakMap
()) ===
"[object WeakMap]"
; }());