(CPArray)arrayByApplyingBlock: documentation

This commit is contained in:
cacaodev
2016-01-16 18:28:04 +01:00
parent 08aa591c65
commit 8c67eee4c8
+5 -1
View File
@@ -880,7 +880,11 @@ Returns a hash for the object. Unlike Cocoa, the hash value does not take conten
return join.call([self _javaScriptArrayCopy], aString);
}
/* @ignore */
/*!
Returns an Array formed by applying a function to the objects in the receiver.
@param aFunction a function taking two arguments: (element, index).
@return an Array containing the transformed elements.
*/
- (CPArray)arrayByApplyingBlock:(Function/*element, index*/)aFunction
{
var result = [],