Sha256: 03334515ff3bf3aa734eefd150d1b5f8267faf6955aecfe673fdc65f8b80edc6

Contents?: true

Size: 479 Bytes

Versions: 18

Compression:

Stored size: 479 Bytes

Contents

var arrayAt = require('../array/virtual/at');
var stringAt = require('../string/virtual/at');

var ArrayPrototype = Array.prototype;
var StringPrototype = String.prototype;

module.exports = function (it) {
  var own = it.at;
  if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.at)) return arrayAt;
  if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.at)) {
    return stringAt;
  } return own;
};

Version data entries

18 entries across 10 versions & 3 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/core-js/es/instance/at.js
disco_app-0.16.1 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.15.2 test/dummy/node_modules/core-js/es/instance/at.js
disco_app-0.15.2 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.18.4 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.18.4 test/dummy/node_modules/core-js/es/instance/at.js
disco_app-0.18.1 test/dummy/node_modules/core-js/es/instance/at.js
disco_app-0.18.1 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/core-js/es/instance/at.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.14.0 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.14.0 test/dummy/node_modules/core-js/es/instance/at.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/core-js/features/instance/at.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/core-js/es/instance/at.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/core-js/features/instance/at.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/core-js/features/instance/at.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/core-js/features/instance/at.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/core-js/features/instance/at.js