Reference · Rockets, variants, parts and the fit check
rankOffunction
The rank of drone drone in a crew of count. Drone 0 is the boss.
Import it
import { rankOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function rankOf(drone: number, count: number): Rank
Parameters
| Name | Type | Description |
|---|---|---|
drone | number | The drone's number, from 0. |
count | number | How many drones are in the crew. |
Returns
Rank
Boss, manager, builder or grunt.
Examples
import { rankOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(rankOf(0, 24));bossWhat it prints (run when this page was built)