UNPKG

bot18

Version:

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

17 lines (12 loc) 350 B
'use strict'; var define = require('define-properties'); var getPolyfill = require('./polyfill'); module.exports = function shimArrayPrototypeFindIndex() { var polyfill = getPolyfill(); define(Array.prototype, { findIndex: polyfill }, { findIndex: function () { return Array.prototype.findIndex !== polyfill; } }); return polyfill; };