Does Ember have a some() method like Dojo


#1

Does Ember have a some() method like Dojo

I am trying to run the below code;

obj.view = someObj.forEach(function(tempArr){
	return (tempArr.actionName == "view") ? true : false ;
});

But since forEach does not terminate, the code does not work properly.

I want to exit at the first find (return true) So I want something similar to what DojoJS has dojo.some() https://dojotoolkit.org/reference-guide/1.7/quickstart/arrays.html#quickstart-arrays


#2

I think you maybe looking for any?