Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/@eslint-community/eslint-utils/index.js

    rd565449 r0c6b92a  
    6161
    6262/**
    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-this
    69 }
    70 
    71 /**
    7263 * Creates the negate function of the given function.
    7364 * @param {function(Token):boolean} f - The function to negate.
     
    7566 */
    7667function negate(f) {
    77     return negate0.bind(f)
     68    return (token) => !f(token)
    7869}
    7970
Note: See TracChangeset for help on using the changeset viewer.