Universeorange.com/Docs/

Priya library Function reference Element functions basename

    ready(() => {
        let element = select('input');
        element.value = '/home/user/hello world.txt';
        let basename = element.basename(element.value);
        console.log(basename);
        basename = element.basename(element.value, '.txt');
        console.log(basename);
    });

This function returns the basename of an url.

Last modified: 2021-06-07

© 2021 universeorange.com