lepu-test-platform-web/node_modules/es6-set/ext/get-last.js

12 lines
199 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function () {
var value, iterator = this.values(), item;
while (true) {
item = iterator.next();
if (item.done) break;
value = item.value;
}
return value;
};