Function __global->js_get_variable_type
Definitions
sources/webstandards_js_lint.php
- Get the type of a JavaScript variable.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $variable | array | No | No | required parameter | N/A | N/A | The variable |
Returns
- The type
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the type of a JavaScript variable.
*
* @param array $variable The variable
* @return string The type
*/
function js_get_variable_type(array $variable) : string
* Get the type of a JavaScript variable.
*
* @param array $variable The variable
* @return string The type
*/
function js_get_variable_type(array $variable) : string
