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