From 8c67eee4c816e0251440614b835bd89f529499ad Mon Sep 17 00:00:00 2001 From: cacaodev Date: Sat, 16 Jan 2016 18:28:04 +0100 Subject: [PATCH] (CPArray)arrayByApplyingBlock: documentation --- Foundation/CPArray/_CPArray.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Foundation/CPArray/_CPArray.j b/Foundation/CPArray/_CPArray.j index 35ba86d76..7607aa480 100755 --- a/Foundation/CPArray/_CPArray.j +++ b/Foundation/CPArray/_CPArray.j @@ -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 = [],