versions/0.2.2/oj.js
function(k, v){
        var key, obj = k, value

        // Optionally take key, value instead of object
        if (!oj.isPlainObject(k)){
          obj = {}
          obj[k] = v
        }

        // Set all keys that are valid properties
        for (key in obj){
          value = obj[key]
          if (this.has(key)){
            this[key] = value
          }
        }
      }
function(k, v){
        var key, obj = k, value

        // Optionally take key, value instead of object
        if (!oj.isPlainObject(k)){
          obj = {}
          obj[k] = v
        }

        // Set all keys that are valid properties
        for (key in obj){
          value = obj[key]
          if (this.has(key)){
            this[key] = value
          }
        }
      }
set: Set property by key, or set all properties with object