noneOf: function()

in public/dexie.js [3768:3787]


        noneOf: function () {
          var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);
          if (set.length === 0) return new Collection(this); // Return entire collection.
          try {
            set.sort(ascending);
          } catch (e) {
            return fail(this, INVALID_KEY_ARGUMENT);
          }
          // Transform ["a","b","c"] to a set of ranges for between/above/below: [[minKey,"a"], ["a","b"], ["b","c"], ["c",maxKey]]
          var ranges = set.reduce(function (res, val) {
            return res
              ? res.concat([[res[res.length - 1][1], val]])
              : [[minKey, val]];
          }, null);
          ranges.push([set[set.length - 1], maxKey]);
          return this.inAnyRange(ranges, {
            includeLowers: false,
            includeUppers: false,
          });
        },