Function Reference/wp script is
Determine if a script has been registered, queued, printed, or is waiting to be printed.
<?php wp_script_is( $handle, $list = 'queue' ); ?>
- (string) (required) Name of the script. Lowercase string.
- Default: None
- (string) (optional) The list to query. One of 'registered' (script was registered through wp_register_script()), 'queue' (script was enqueued), 'done' (script has been printed), or 'to_do' (script has not yet been printed)
- Default: queue
- True or false.
wp_script_is() is located in
wp_register_style(), wp_enqueue_style(), wp_register_script(), wp_deregister_script(), wp_enqueue_script(), wp_dequeue_script()