Reference · Rockets, variants, parts and the fit check
enginesWantedfunction
on asks for them, and a reader who asked for reduced motion has them off whatever the page says. Anything else, or nothing, is off.
Import it
import { enginesWanted } from "@johnmorrisdotca/uchusen-rockets";
Definition
function enginesWanted(attribute: string | null, reduced: boolean): boolean
Parameters
| Name | Type | Description |
|---|---|---|
attribute | string | null | The value of the |
reduced | boolean | True when the reader asked for reduced motion. |
Returns
boolean
True when the flames should be drawn.
Examples
import { enginesWanted } from "@johnmorrisdotca/uchusen-rockets";
console.log(enginesWanted("on", false), enginesWanted("on", true), enginesWanted(null, false));true false falseWhat it prints (run when this page was built)