Full threadjohnitsagal·string.indexOf() is O(n), whereas the object-property-lookup is O(1). I guess indexOf is fast enough anyway given the size of the dictionary.View on HN