jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
16 lines (15 loc) • 741 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
*/
/**
* Always return Array. It's a safe polyfill for [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) method
* In certain scenarios (such as with Joomla Mootools), Array.from may be substituted with a less optimal implementation
* ```javascript
* Jodit.modules.Helpers.toArray('123') // ['1', '2', '3']
* Jodit.modules.Helpers.toArray(['test']) // ['test']
* Jodit.modules.Helpers.toArray(1) // []
* ```
*/
export declare const toArray: typeof Array.from;