The slice() method slices elements from an array.
Try it