[lang-ref] ( slice_from_m_with_length ) ( javascript )

test("slice from m with length", () => {
  // items.slice(m, m + length)
  const items = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
  const m      = 3;
  const length = 2;
  const part = items.slice(m, m + length);

  expect(part).toEqual(['3', '4']);
});