xxxxxxxxxx
;(function( $, $$ ){ 'use strict';
// skipped
})(
typeof jQuery !== 'undefined' ? jQuery : null,
typeof cytoscape !== 'undefined' ? cytoscape : null
);
xxxxxxxxxx
// ~~ used to convert some types to int (32 bit int)
// Examples
// ~~NaN = 0
// ~~'-1' = -1
// ~~true = 1
// ~~false = 0
// ~~5.6 = 5
xxxxxxxxxx
const arr = ['apple', 'banana', 'orange'];
const searchValue = 'banana';
if (arr.includes(searchValue)) {
console.log('Value found in the array!');
} else {
console.log('Value not found in the array.');
}