Get the nth root of a number.
npm
Install withnpm i nth-root --save
Usage
var nthRoot = ;
Returns the square root of the given number by default:
;//=> '4'; //=> '-4'
Pass a degree as the second param. e.g. to get cube root:
; //=> '-3';//=> '3'; //=> '-2';//=> '2'
Run tests
Install dev dependencies:
node i -d && mocha
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 18, 2015.