UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

9 lines (6 loc) 269 B
var findIndex = require('../array/virtual/find-index'); var ArrayPrototype = Array.prototype; module.exports = function (it) { var own = it.findIndex; return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.findIndex) ? findIndex : own; };