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.mjs

    rd565449 r0c6b92a  
    5757
    5858/**
    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-this
    65 }
    66 
    67 /**
    6859 * Creates the negate function of the given function.
    6960 * @param {function(Token):boolean} f - The function to negate.
     
    7162 */
    7263function negate(f) {
    73     return negate0.bind(f)
     64    return (token) => !f(token)
    7465}
    7566
Note: See TracChangeset for help on using the changeset viewer.