mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
18
node_modules/es5-ext/object/to-array.js
generated
vendored
Normal file
18
node_modules/es5-ext/object/to-array.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var callable = require('./valid-callable')
|
||||
, forEach = require('./for-each')
|
||||
|
||||
, call = Function.prototype.call
|
||||
|
||||
, defaultCb = function (value, key) { return [key, value]; };
|
||||
|
||||
module.exports = function (obj/*, cb, thisArg, compareFn*/) {
|
||||
var a = [], cb = arguments[1], thisArg = arguments[2];
|
||||
cb = (cb == null) ? defaultCb : callable(cb);
|
||||
|
||||
forEach(obj, function (value, key, obj, index) {
|
||||
a.push(call.call(cb, thisArg, value, key, this, index));
|
||||
}, obj, arguments[3]);
|
||||
return a;
|
||||
};
|
||||
Reference in New Issue
Block a user