Check if it is empty.
If the value is an array, returns true if there are no elements.
If the value is a string, the leading and trailing spaces are trimmed and then checked.
Parameters
value: any
Character strings, arrays, objects, etc. to be checked.
Returns boolean
Returns true if the value is empty, false otherwise.
Check if it is empty. If the value is an array, returns true if there are no elements. If the value is a string, the leading and trailing spaces are trimmed and then checked.