-
Notifications
You must be signed in to change notification settings - Fork 1
Function_evisit_core_js_utils_firstOf
Taylor Everding edited this page Feb 9, 2021
·
1 revision
- value
- (Array|String) Array or String to get element from
- defaultValue [optional]
- (*) Specify a default value to return if provided value is not an instance of Array or String, or element is null or undefined
- (*) first element of array / string, undefined if does not exist.
returns the first element of provided Array or String. If the param is not an instance of Array or String, defaultValue is returned.