WordPress at a glance
function is not described

WP_Customize_Setting::js_value() public WP 3.4.0

Sanitize the setting's value for use in JavaScript.

{} It's a method of the class: WP_Customize_Setting{}

Hooks from the method
Return

Mixed. The requested escaped value.

Usage

$WP_Customize_Setting = new WP_Customize_Setting();
$WP_Customize_Setting->js_value();

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Setting::js_value() WP 5.5.2

<?php
public function js_value() {

	/**
	 * Filters a Customize setting value for use in JavaScript.
	 *
	 * The dynamic portion of the hook name, `$this->id`, refers to the setting ID.
	 *
	 * @since 3.4.0
	 *
	 * @param mixed                $value The setting value.
	 * @param WP_Customize_Setting $this  WP_Customize_Setting instance.
	 */
	$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );

	if ( is_string( $value ) ) {
		return html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
	}

	return $value;
}