jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
30 lines (29 loc) • 735 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module helpers/utils
*/
import type { IDictionary, Nullable } from "../../../types/index";
/**
* Safe access in tree object
*
* @example
* ```js
* const obj = {
* a: {
* b: {
* c: {
* e: false
* }
* }
* }
* };
*
* console.log(Jodit.modules.Helpers.get('a.b.c.d.e', obj) === false); // true
* console.log(Jodit.modules.Helpers.get('a.b.a.d.e', obj) === null); // false
* ```
*/
export declare function get<T>(chain: string, obj: IDictionary): Nullable<T>;