Skip to content
ExamplesOpen editor ↗

kopanyaManaane

Concatenates arrays into a new array.

kopanyaManaane(lenaane, aMangwe)

Returns a new array without changing the inputs. Array arguments are spread by one level; scalar arguments append as single values. Nested objects remain shared because the copy is shallow.

NameTypeDescription
lenaanelenaaneThe array to operate on.
aMangwelenaane / bolengOne or more arrays or values to concatenate.
Concatenates arrays into a new array
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = kopanyaManaane([1, 2], [3, 4]);
  bogoloJwaMokwalo(32);
  thalaMokwalo(mokwalo(a), 60, 120);
  emisaPoapoeletso();
}

balaLenaane, kopololaKarolo