UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

13 lines (9 loc) 370 B
'use strict'; module.exports = function getPolyfill() { // Detect if an implementation exists // Detect early implementations which skipped holes in sparse arrays var implemented = Array.prototype.findIndex && ([, 1].findIndex(function (item, idx) { return idx === 0; }) === 0); return implemented ? Array.prototype.findIndex : require('./implementation'); };