source:
trip-planner-front/node_modules/core-js/internals/iterator-close.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 230 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | var anObject = require('../internals/an-object'); |
2 | ||
3 | module.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.