Sha256: 301242e717c4b6c9cddd2815f7219a2842a5d6a50c9c0c7cab6b97b4dc893963
Contents?: true
Size: 310 Bytes
Versions: 36
Compression:
Stored size: 310 Bytes
Contents
var replaceAll = require('../string/virtual/replace-all'); var StringPrototype = String.prototype; module.exports = function (it) { var own = it.replaceAll; return typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.replaceAll) ? replaceAll : own; };
Version data entries
36 entries across 35 versions & 9 rubygems