- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
14 lines
218 B
JavaScript
14 lines
218 B
JavaScript
/**
|
|
* Often used conditions.
|
|
*
|
|
* @module conditions
|
|
*/
|
|
|
|
/**
|
|
* @template T
|
|
* @param {T|null|undefined} v
|
|
* @return {T|null}
|
|
*/
|
|
/* c8 ignore next */
|
|
export const undefinedToNull = v => v === undefined ? null : v
|