highest-power-two
v1.0.2
Published
Find the highest power of two below a given number
Downloads
3
Readme
highestPowerTwo
A small utility to find the highest power of two below a given value.
Installation
npm install highest-power-two --save
Usage
var highestPowerTwo = require('highest-power-two').default;
var result = highestPowerTwo(51);
console.log('result', result); // => "result 32"
Tests
npm test
Changelog
v1.0.2
- Fix README instructions
v1.0.1
- Changed
prepublish
script toprepare
.
v1.0.0
- Initial release