Function __global->check_js
Definitions
sources/webstandards_js_lint.php
- Check some JS code for conformance.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $data | string | No | No | required parameter | N/A | N/A | Code |
| $raw_errors | boolean | No | No | False | N/A | N/A | Whether to return raw-errors |
Returns
- Parse information
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check some JS code for conformance.
*
* @param string $data Code
* @param boolean $raw_errors Whether to return raw-errors
* @return array Parse information
*/
function check_js(string $data, bool $raw_errors = false) : array
* Check some JS code for conformance.
*
* @param string $data Code
* @param boolean $raw_errors Whether to return raw-errors
* @return array Parse information
*/
function check_js(string $data, bool $raw_errors = false) : array

