UNPKG

firescript

Version:
26 lines (17 loc) 392 B
[value] is [type] ================= Data type detection checks the data type of a variable. It compares `[value]` with `[type]` and evaluates to `true` if the type matches. Otherwise it evaluates to `false` Syntax ------ ``` [value] is [type] ``` #### Firescript ```fire if foo is str ``` #### Javascript ```js if (FirescriptRuntime.isTypeof(FirescriptRuntime.TYPE_STR, foo)) { } ```