source: trip-planner-front/node_modules/core-js/internals/iterator-close.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 230 bytes
Line 
1var anObject = require('../internals/an-object');
2
3module.exports = function (iterator) {
4 var returnMethod = iterator['return'];
5 if (returnMethod !== undefined) {
6 return anObject(returnMethod.call(iterator)).value;
7 }
8};
Note: See TracBrowser for help on using the repository browser.