varanObject=require('../internals/an-object');vargetIteratorMethod=require('../internals/get-iterator-method');module.exports=function(it){variteratorMethod=getIteratorMethod(it);if(typeofiteratorMethod!='function'){throwTypeError(String(it)+' is not iterable');}returnanObject(iteratorMethod.call(it));};