Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "mumath", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Practical math utils for components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,3 +18,9 @@ /** | ||
return !d ? 0 : s.length - d; | ||
}; | ||
if (d) return s.length - d; | ||
var e = s.indexOf('e-'); | ||
if (e >= 0) return parseInt(s.substring(e+2)); | ||
return 0; | ||
}; |
@@ -22,2 +22,7 @@ # μMath [![Build Status](https://travis-ci.org/dfcreative/mumath.svg?branch=master)](https://travis-ci.org/dfcreative/mumath) [![Code Climate](https://codeclimate.com/github/dfcreative/mumath/badges/gpa.svg)](https://codeclimate.com/github/dfcreative/mumath) <a href="UNLICENSE"><img src="http://upload.wikimedia.org/wikipedia/commons/6/62/PD-icon.svg" width="20"/></a> | ||
### `len(a, b)` | ||
Return length of a vector. | ||
### `precision(value)` | ||
@@ -49,6 +54,8 @@ | ||
### `closest(value, arr)` | ||
### `closest(value, list)` | ||
Get closest value out of a set. | ||
### `order(value)` | ||
@@ -55,0 +62,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6481
189
64