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