Core Description
Function findVal
mixed findVal(array|object a_obj, string a_searchString)
mixed findVal(array|object a_obj, array|object a_searchArray)
mixed findVal(array|object a_obj, function a_searchCb)
Searches in a_obj and returns the value of the found item. If the object is not found, undefined is returned.
Source file
fcf:fcf.js
Namespace
fcf
Arguments:
array|object a_obj - The object being searched for
string a_searchString - Searched string
array|object a_searchArray - An object or array storing the desired elements
function a_searchCb - The search function returns true if the item being checked matches the desired one. Signature: bool (mixed a_key, mixed a_value)
Return value:
mixed
Returns the value of the found element a_obj or undefined