Returns item in <key>_<value> format for given URI. - Node.js String

Node.js examples for String:URL String

Description

Returns item in <key>_<value> format for given URI.

Demo Code


function uri2item(uri) {
    var addr = uri.split('/');
    return addr[addr.length - 1];
};

Related Tutorials