Back to Functions

noConflict

util

Reverts the _ variable to its previous value and returns a reference to the tulx object.

Installation

Import
import { noConflict } from '@tulx/utils';

Source Code

Implementation
/**
 * Reverts the _ variable to its previous value and returns a reference to the tulx object.
 *
 * @returns Returns the tulx object.
 *
 * @example
 * ```ts
 * const tulx = noConflict();
 * ```
 */
export function noConflict(): typeof globalThis {
  return globalThis;
}

Example

import { noConflict } from '@tulx/utils';

const tulx = noConflict();

Related Functions