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