mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
15
node_modules/es6-iterator/get.js
generated
vendored
Normal file
15
node_modules/es6-iterator/get.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
var isArguments = require('es5-ext/function/is-arguments')
|
||||
, isString = require('es5-ext/string/is-string')
|
||||
, ArrayIterator = require('./array')
|
||||
, StringIterator = require('./string')
|
||||
, iterable = require('./valid-iterable')
|
||||
, iteratorSymbol = require('es6-symbol').iterator;
|
||||
|
||||
module.exports = function (obj) {
|
||||
if (typeof iterable(obj)[iteratorSymbol] === 'function') return obj[iteratorSymbol]();
|
||||
if (isArguments(obj)) return new ArrayIterator(obj);
|
||||
if (isString(obj)) return new StringIterator(obj);
|
||||
return new ArrayIterator(obj);
|
||||
};
|
||||
Reference in New Issue
Block a user