Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
295 bytes
|
Line | |
---|
1 | var trimEnd = require('../string/virtual/trim-end');
|
---|
2 |
|
---|
3 | var StringPrototype = String.prototype;
|
---|
4 |
|
---|
5 | module.exports = function (it) {
|
---|
6 | var own = it.trimEnd;
|
---|
7 | return typeof it === 'string' || it === StringPrototype
|
---|
8 | || (it instanceof String && own === StringPrototype.trimEnd) ? trimEnd : own;
|
---|
9 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.