Skip to content

DanielJDufour/halve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

halve

Cut A Number into Two

features

  • Simple
  • Preserve Integer Types

install

npm install halve

usage

import halve from "halve";

const num = 5;

halve(num, { round: false });
// [ 2.5, 2.5 ]

halve(num { round: true });
// [3, 2]

About

Cut A Number into Two Parts. Preserve Integer Types.

Resources

Stars

Watchers

Forks

Packages

No packages published