1 2 3 4 5 6
/** * Returns the collection name extracted from a namespace string. */ function getCollectionNameFromFullNamespace(ns) { return ns.split(/\.(.+)/)[1]; }