Number type
Jump to navigation
Jump to search
funcname
Returns a map that represents the number datatype in
miniScript's core type system.
See also: string; list; map; funcRef
Usage Notes
number type
can be used with isato check whether a variable refers to a number. You can also assign new methods here to make them available to all maps(though because of a limitation in MiniScript's parser, such methods do not work on numeric literals).
Example
42 isa number // returns 1