Skip to content

marqeosis/JavaScript-Array-Lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ArrayUtilsLab

You will make you very own ArrayUtil class! Implement the following methods without using any built in methods. Happy Hacking!

  • isEmpty(array) Returns true if the array is empty
  • append(original, value) Adds the new value to the end and returns the array
  • clone(original) Copies the array and returns the copy
  • subArray(original, from, to) Copies the array values between the specified range and returns the range of values as a new array
  • equals(arr1, arr2)Returns true if two arrays are equal
  • fill(int[] original, int value) Sets all the positions in an array to the given value and returns
  • indexOf(original, value) Returns the index of the first occurrence of the value in the array, -1 if the value is not found
  • remove(original, value) Copies the array, removes the first occurrence of the value in the array, and returns
  • reverse(original) Reverses the order of the elements in the array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%