This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function allows to search a especific key in a complex object | |
* @author [email protected] | |
* @param (Object) o: Object in which you look for the key | |
* @param (string) key: Name of key you're looking for | |
* @return (mixed) $r: Return object or value related with key name, | |
* instead if key were not found it return undefined | |
*/ | |
function hasKey(o, key) { |