.not

Description

Not is a bracketless method, that returns the length of its input value. It may conflict with object keys.

Parameters

Not takes no parameters

Usage On Booleans

arr = [1,2,3,4,5]

log arr.contains(6).not
// true
// arr doesnt contain 6 so that returns false
// not then converts that false into a true

Last updated