code: function isApplicable(namespace) {
          if (namespaces.length === 0) {
              return true;
          }
  
          return !namespaces.some(function (ns) {
              var nsRegex = new RegExp('^' + ns + '(?:$|\\..+)');
              return nsRegex.test(namespace);
          });
      }
docs: A namespace is only applicable when there are no existing namespaces in the collection which would logically "trump" it; e.g.:  var namespaces = ['foo']; isApplicable('foo.bar'); // => false isApplicable('bar');     // => true  This deduping keeps the set of exposed values as small as possible by not including items which will be logically overridden by others.