A Minimal, Full-Stack, Tool-Assisted Language. Native to Browsers and Bun. Strictly & Strongly-Typed.
Mozilla Public License 2.0
9
stars
1
forks
source link
Identify functions - self, always false, always empty, etc #26
Open
coolaj86 opened 2 years ago
Function._noop
does nothing (return is not defined)String._empty
returns an empty stringBoolean._false
always returnsfalse
Boolean._true
always returnstrue
Boolean._invert
always returns the oppositeObject._self
always returns the input \ (an identity function likeObject
itself, but for all types)Object._null
always returns nullThere are other functions that make sense to include, but that I don't think I've actually found use for:
Number._zero
Boolean._false
redundant withFunction._noop
?