Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/@eslint-community/eslint-utils/index.js
rd565449 r0c6b92a 61 61 62 62 /** 63 * Negate the result of `this` calling.64 * @param {Token} token The token to check.65 * @returns {boolean} `true` if the result of `this(token)` is `false`.66 */67 function negate0(token) {68 return !this(token) //eslint-disable-line no-invalid-this69 }70 71 /**72 63 * Creates the negate function of the given function. 73 64 * @param {function(Token):boolean} f - The function to negate. … … 75 66 */ 76 67 function negate(f) { 77 return negate0.bind(f)68 return (token) => !f(token) 78 69 } 79 70
Note:
See TracChangeset
for help on using the changeset viewer.