PATH:
usr
/
local
/
lib
/
node_modules
/
gulp
/
node_modules
/
es5-ext
/
array
/
#
"use strict"; var numberIsNaN = require("../../number/is-nan") , toPosInt = require("../../number/to-pos-integer") , value = require("../../object/valid-value") , lastIndexOf = Array.prototype.lastIndexOf , objHasOwnProperty = Object.prototype.hasOwnProperty , abs = Math.abs , floor = Math.floor; module.exports = function (searchElement/*, fromIndex*/) { var i, fromIndex, val; if (!numberIsNaN(searchElement)) { // Jslint: ignore return lastIndexOf.apply(this, arguments); } value(this); fromIndex = arguments[1]; if (isNaN(fromIndex)) fromIndex = toPosInt(this.length) - 1; else if (fromIndex >= 0) fromIndex = floor(fromIndex); else fromIndex = toPosInt(this.length) - floor(abs(fromIndex)); for (i = fromIndex; i >= 0; --i) { if (objHasOwnProperty.call(this, i)) { val = this[i]; if (numberIsNaN(val)) return i; // Jslint: ignore } } return -1; };
[-] compact.js
[edit]
[-] is-uniq.js
[edit]
[-] intersection.js
[edit]
[+]
slice
[+]
filter
[+]
fill
[-] first-index.js
[edit]
[-] is-empty.js
[edit]
[+]
..
[+]
values
[-] exclusion.js
[edit]
[-] indexes-of.js
[edit]
[+]
keys
[-] for-each-right.js
[edit]
[-] contains.js
[edit]
[+]
map
[-] e-index-of.js
[edit]
[+]
splice
[-] flatten.js
[edit]
[-] _compare-by-length.js
[edit]
[-] some-right.js
[edit]
[+]
find-index
[-] e-last-index-of.js
[edit]
[-] diff.js
[edit]
[+]
entries
[-] first.js
[edit]
[-] uniq.js
[edit]
[+]
@@iterator
[-] index.js
[edit]
[-] separate.js
[edit]
[-] remove.js
[edit]
[-] binary-search.js
[edit]
[-] last.js
[edit]
[-] group.js
[edit]
[+]
find
[+]
concat
[-] last-index.js
[edit]
[-] is-copy.js
[edit]
[-] clear.js
[edit]
[+]
copy-within