massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / string-trim-forced.js
1 var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;
2 var fails = require('../internals/fails');
3 var whitespaces = require('../internals/whitespaces');
4
5 var non = '\u200B\u0085\u180E';
6
7 // check that a method works with the correct list
8 // of whitespaces and has a correct name
9 module.exports = function (METHOD_NAME) {
10   return fails(function () {
11     return !!whitespaces[METHOD_NAME]()
12       || non[METHOD_NAME]() !== non
13       || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
14   });
15 };