array_filter - wrong return type #73

DerDu opened this Issue Feb 22, 2013 · 0 comments

2 participants


array_filter should always return array (on success) and never an object !

something like this won't work cause of this issue

var A = [1,false,3];
// result: 3

var B = array_filter( A );
// undefined, but expected: 2
@DerDu DerDu added a commit to DerDu/phpjs that referenced this issue Feb 22, 2013
@DerDu DerDu Update functions/array/array_filter.js
Fix: Issue #73
Return array[] (not object{}) if parameter is an array[]
@kvz kvz was assigned Feb 22, 2013
@kvz kvz closed this Feb 22, 2013
@kvz kvz added a commit that referenced this issue Feb 22, 2013
@kvz Fix whitespace issues introduced via #73 eef5e81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment