util.isArray doesn't exist in node < v0.6 #3

Merged
merged 1 commit into from May 3, 2012

Projects

None yet

2 participants

@twobit
Contributor
twobit commented May 2, 2012

At Yahoo we use v0.4.13 which doesn't have util.isArray:
https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6

I added a check for util.isArray, if it doesn't exist we define it. I use the same isArray from node source:
https://github.com/joyent/node/blob/master/lib/util.js#L380

@mosen
Owner
mosen commented May 3, 2012

Hey there,

Sorry I was developing against 0.6 but theres no real reason to use that API exclusively. Hopefully i'll integrate YUI's own Array object into these kind of things which will give us something more platform agnostic :)

@mosen mosen merged commit 5581924 into mosen:master May 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment