wallet-core/node_modules/es6-iterator/valid-iterable.js

9 lines
187 B
JavaScript
Raw Normal View History

2017-12-10 21:51:33 +01:00
"use strict";
2017-08-14 05:01:11 +02:00
2017-12-10 21:51:33 +01:00
var isIterable = require("./is-iterable");
2017-08-14 05:01:11 +02:00
module.exports = function (value) {
if (!isIterable(value)) throw new TypeError(value + " is not iterable");
return value;
};