diff options
Diffstat (limited to 'node_modules/es6-map/valid-map.js')
-rw-r--r-- | node_modules/es6-map/valid-map.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/es6-map/valid-map.js b/node_modules/es6-map/valid-map.js new file mode 100644 index 000000000..e2aca87a4 --- /dev/null +++ b/node_modules/es6-map/valid-map.js @@ -0,0 +1,8 @@ +'use strict'; + +var isMap = require('./is-map'); + +module.exports = function (x) { + if (!isMap(x)) throw new TypeError(x + " is not a Map"); + return x; +}; |