source: node_modules/core-js-pure/internals/string-trim-forced.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 549 bytes
RevLine 
[d24f17c]1'use strict';
2var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;
3var fails = require('../internals/fails');
4var whitespaces = require('../internals/whitespaces');
5
6var non = '\u200B\u0085\u180E';
7
8// check that a method works with the correct list
9// of whitespaces and has a correct name
10module.exports = function (METHOD_NAME) {
11 return fails(function () {
12 return !!whitespaces[METHOD_NAME]()
13 || non[METHOD_NAME]() !== non
14 || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
15 });
16};
Note: See TracBrowser for help on using the repository browser.