==
and !=
JS-0050298 const blockProps = useBlockProps.save( {
299 className:
300 'group-modal modal fade'
301 + ( attributes.modalShow != 'default' ? attributes.modalShow : '' )302 ,
303 'data-bs-backdrop' : attributes.modalBackdrop,
304 'data-bs-keyboard' : attributes.modalKeyboard,
309 className:
310 'modal-dialog'
311 + ( attributes.modalAlign ? ' modal-dialog-centered' : '' )
312 + ( attributes.modalSize != 'default' ? attributes.modalSize : '' )313 ,
314 });
315
573export function UserRemind( {slugname} ){
574 let message = __( 'No category selected. ', 'ekiline-collection' );
575 let classname = 'editor-modal-route';
576 if ( slugname.length != 0){577 let element = slugname?.map(( el ) => ( el ));
578 message = __( 'Selected categories: ', 'ekiline-collection' ) + element ;
579 classname = classname + ' has-anchor';
290 // Guardar array en propiedades de bloque.
291 const savethis = (newval)=>setAttributes({SavePosts:newval});
292 // Si no hay dato en el bloque o si no tienen la misma extension el dato guardado con el nuevo array.
293 if( !postsStored || ! postsStored?.length > 0 || nuevoArray?.length != postsStored?.length ){294 savethis(nuevoArray);
295 }
296 }
It is considered good practice to use the type-safe equality operators ===
and !==
instead of their regular counterparts ==
and !=
.
The strict equality operators (===
and !==
) use the strict equality comparison algorithm to compare two operands.
false
.true
only if they refer to the same object.null
or both operands are undefined
, return true
.NaN
, return false
.+0
and -0
are considered to be the same value.true
or both false
.The most notable difference between this operator and the equality (==
) operator is that if the operands are of different types, the ==
operator attempts to convert them to the same type before comparing.
a == b
foo == true
bananas != 1
value == undefined
typeof foo == 'undefined'
'hello' != 'world'
0 == 0
true == true
foo == null
a === b
foo === true
bananas !== 1
value === undefined
typeof foo === 'undefined'
'hello' !== 'world'
0 === 0
true === true
foo === null