Sha256: 16afeba293f299821bf57f89054e23c28b65152fe46444c7914323eee704754e
Contents?: true
Size: 295 Bytes
Versions: 36
Compression:
Stored size: 295 Bytes
Contents
var trimEnd = require('../string/virtual/trim-end'); var StringPrototype = String.prototype; module.exports = function (it) { var own = it.trimEnd; return typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.trimEnd) ? trimEnd : own; };
Version data entries
36 entries across 35 versions & 9 rubygems