Sha256: 619616960d26df6e05d2c5a6cd212620cb5d5d54a64d19db610b41e86e0885fe
Contents?: true
Size: 400 Bytes
Versions: 4
Compression:
Stored size: 400 Bytes
Contents
'use strict'; var isPrototypeOf = require('../../internals/object-is-prototype-of'); var method = require('../string/virtual/starts-with'); var StringPrototype = String.prototype; module.exports = function (it) { var own = it.startsWith; return typeof it == 'string' || it === StringPrototype || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.startsWith) ? method : own; };
Version data entries
4 entries across 4 versions & 1 rubygems