Reference · Rockets, variants, parts and the fit check
blankfunction
A figure with no value: the shape of "no source gives this".
Import it
import { blank } from "@johnmorrisdotca/uchusen-rockets";
Definition
function blank<T = number>(note?: string, brief?: string): Figure<T>
Parameters
| Name | Type | Description |
|---|---|---|
note (optional) | string | undefined | Why there is no value. Optional. |
brief (optional) | string | undefined | What to say in place of a value wherever it is shown. Optional. |
Returns
Figure<T>
A figure whose value and source are null.
Examples
import { blank } from "@johnmorrisdotca/uchusen-rockets";
console.log(blank("No source read gives it.", "not given"));{
value: null,
source: null,
note: 'No source read gives it.',
brief: 'not given'
}What it prints (run when this page was built)