Comparing version 1.0.104 to 1.0.105
{ | ||
"name": "yow", | ||
"version": "1.0.104", | ||
"version": "1.0.105", | ||
"description": "You Only Wish module", | ||
"main": "yow.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"goto-github": "open https://github.com/meg768/yow", | ||
"goto-npm": "open https://www.npmjs.com/package/yow", | ||
"commit": "git add -A && git commit -m '-' && git push" | ||
}, | ||
@@ -9,0 +11,0 @@ "repository": { |
var isArray = require('./is.js').isArray; | ||
var isNumber = require('./is.js').isNumber; | ||
var isInteger = require('./is.js').isInteger; | ||
var isFloat = require('./is.js').isFloat; | ||
var isObject = require('./is.js').isObject; | ||
@@ -32,8 +30,2 @@ | ||
/* | ||
if (isFloat(arg)) { | ||
return Math.random() * arg; | ||
} | ||
*/ | ||
if (isInteger(arg)) { | ||
@@ -40,0 +32,0 @@ return Math.floor(Math.random() * arg); |
@@ -22,2 +22,3 @@ # Yow | ||
- **extend(args)** - Again, just as you would expect. Uses the npm module 'extend'. | ||
- **once(fn, context)** - Call a function just once and return the same result. | ||
@@ -24,0 +25,0 @@ |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
21476
16
523
0
161