1
// eslint-disable-next-line no-bitwise
2 1
export const round = (num: number): number => 0 | (num + 0.5);

Read our documentation on viewing source code .

Loading