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:
21
node_modules/es5-ext/array/#/is-copy.js
generated
vendored
Normal file
21
node_modules/es5-ext/array/#/is-copy.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var toPosInt = require('../../number/to-pos-integer')
|
||||
, eq = require('../../object/eq')
|
||||
, value = require('../../object/valid-value')
|
||||
|
||||
, hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
|
||||
module.exports = function (other) {
|
||||
var i, l;
|
||||
(value(this) && value(other));
|
||||
l = toPosInt(this.length);
|
||||
if (l !== toPosInt(other.length)) return false;
|
||||
for (i = 0; i < l; ++i) {
|
||||
if (hasOwnProperty.call(this, i) !== hasOwnProperty.call(other, i)) {
|
||||
return false;
|
||||
}
|
||||
if (!eq(this[i], other[i])) return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
Reference in New Issue
Block a user