1 import assert from "node:assert/strict";
3 // Check if the object we got is the jQuery object by invoking a basic API.
4 export const ensureJQuery = ( jQuery ) => {
5 assert( /^jQuery/.test( jQuery.expando ),
6 "jQuery.expando was not detected, the jQuery bootstrap process has failed" );