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:
17
node_modules/es5-ext/object/flatten.js
generated
vendored
Normal file
17
node_modules/es5-ext/object/flatten.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var isPlainObject = require('./is-plain-object')
|
||||
, forEach = require('./for-each')
|
||||
|
||||
, process;
|
||||
|
||||
process = function self(value, key) {
|
||||
if (isPlainObject(value)) forEach(value, self, this);
|
||||
else this[key] = value;
|
||||
};
|
||||
|
||||
module.exports = function (obj) {
|
||||
var flattened = {};
|
||||
forEach(obj, process, flattened);
|
||||
return flattened;
|
||||
};
|
||||
Reference in New Issue
Block a user