[lang-ref] ( slice_from_m_to_n ) ( javascript )

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

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