source:
trip-planner-front/node_modules/core-js/es/instance/trim.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 279 bytes |
Line | |
---|---|
1 | var trim = require('../string/virtual/trim'); |
2 | |
3 | var StringPrototype = String.prototype; |
4 | |
5 | module.exports = function (it) { |
6 | var own = it.trim; |
7 | return typeof it === 'string' || it === StringPrototype |
8 | || (it instanceof String && own === StringPrototype.trim) ? trim : own; |
9 | }; |
Note:
See TracBrowser
for help on using the repository browser.