mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 00:01:05 +03:30
12 lines
273 B
JavaScript
Vendored
12 lines
273 B
JavaScript
Vendored
import { reduce } from './reduce';
|
|
function toArrayReducer(arr, item, index) {
|
|
if (index === 0) {
|
|
return [item];
|
|
}
|
|
arr.push(item);
|
|
return arr;
|
|
}
|
|
export function toArray() {
|
|
return reduce(toArrayReducer, []);
|
|
}
|
|
//# sourceMappingURL=toArray.js.map
|