keyFor renamed as indexOf.