getKeys

sb.getKeys(object, keys)

var spells = {"fire": 5, "ice": 4, "electro": 6, "wind": 7};
sb.getKeys(spells, "fire");
-> {"fire": 5}
var spells = {"fire": 5, "ice": 4, "electro": 6, "wind": 7};
sb.getKeys(spells, ["fire", "wind"]);
-> {"fire": 5, "wind" : 7}

results matching ""

    No results matching ""