mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 03:02:49 +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/get-property-names.js
generated
vendored
Normal file
18
node_modules/es5-ext/object/get-property-names.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var uniq = require('../array/#/uniq')
|
||||
, value = require('./valid-value')
|
||||
|
||||
, push = Array.prototype.push
|
||||
, getOwnPropertyNames = Object.getOwnPropertyNames
|
||||
, getPrototypeOf = Object.getPrototypeOf;
|
||||
|
||||
module.exports = function (obj) {
|
||||
var keys;
|
||||
obj = Object(value(obj));
|
||||
keys = getOwnPropertyNames(obj);
|
||||
while ((obj = getPrototypeOf(obj))) {
|
||||
push.apply(keys, getOwnPropertyNames(obj));
|
||||
}
|
||||
return uniq.call(keys);
|
||||
};
|
||||
Reference in New Issue
Block a user