[Pkg-javascript-commits] [node-is-arrayish] 01/05: New upstream version 0.3.1
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Oct 27 18:42:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-is-arrayish.
commit 2b0da06f14bb5dee2e2c561c10cc3289701ac619
Author: Pirate Praveen <praveen at debian.org>
Date: Fri Oct 27 23:55:24 2017 +0530
New upstream version 0.3.1
---
.travis.yml | 6 +++++-
index.js | 2 +-
package.json | 2 +-
test/test.coffee | 2 ++
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index c716af2..d309186 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,11 @@ node_js:
- "0.10"
- "0.11"
- "0.12"
- - "iojs"
+ - 3
+ - 4
+ - 5
+ - 6
+ - 7
os:
- linux
diff --git a/index.js b/index.js
index 9244ffd..b8f2484 100644
--- a/index.js
+++ b/index.js
@@ -1,7 +1,7 @@
'use strict';
module.exports = function isArrayish(obj) {
- if (!obj) {
+ if (!obj || typeof obj === 'string') {
return false;
}
diff --git a/package.json b/package.json
index 6a7df2c..12a7f75 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "is-arrayish",
"description": "Determines if an object can be used as an array",
- "version": "0.3.0",
+ "version": "0.3.1",
"author": "Qix (http://github.com/qix-)",
"keywords": [
"is",
diff --git a/test/test.coffee b/test/test.coffee
index 0341ec4..4d56086 100644
--- a/test/test.coffee
+++ b/test/test.coffee
@@ -18,3 +18,5 @@ it 'should check if things are like arrays', ->
if Object.setPrototypeOf
(isArrayish Object.setPrototypeOf {}, []).should.equal yes
(isArrayish Object.setPrototypeOf {}, Array.prototype).should.equal yes
+
+ (isArrayish [1, 3, 4, 5]).should.equal yes
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-is-arrayish.git
More information about the Pkg-javascript-commits
mailing list