Skip to content
ExamplesOpen editor ↗

lenaaneLeNaLe

Checks whether an array contains a value.

lenaaneLeNaLe(lenaane, boleng, [tshimologo])

Returns nnete or maaka without changing the array. Numbers and strings compare by value; objects compare by identity, not by matching fields. NaN matches NaN, and +0 matches -0. The optional start defaults to 0; negative starts count from the end.

NameTypeDescription
lenaanelenaaneAn array of values.
bolengbolengThe value to look for.
tshimologo (optional)paloSearch start index; defaults to 0.
Checks whether an array contains a value
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri mafelo = [60, 140, 220];
  fa (lenaaneLeNaLe(mafelo, 140)) {
    tlatsaMmala(30, 140, 130);
  }
  thalaSediko(160, 110, 90);
  emisaPoapoeletso();
}

balaLenaane, tlosaMoLenaane, nnete