# Function splitUnit Returns an array of units whose sum is equal to this unit ## Syntax ```js splitUnit(unit: Unit, parts: Array.) ``` ### Parameters Parameter | Type | Description --------- | ---- | ----------- `parts` | Array | An array of strings or valueless units. ### Returns Type | Description ---- | ----------- Array | An array of units. ## Examples ```js splitUnit(new Unit(1, 'm'), ['feet', 'inch']); // [ 3 feet, 3.3700787401575 inch ] ``` ## See also [unit](unit.md)