Universeorange.com/Docs/

Priya library Function reference Global functions namespace

Example

    ready(() => {
        let text = '     text     ';
        _('prototype').trim(text);
        priya.debug(text);
    });

To define a function in priya you can use _('namespace').
namespace is a String and cannot contain . (dots).
In the above example we use the built-in prototype namespace and trim the text.

Console: F12

text

Last modified: 2021-06-07

© 2021 universeorange.com