Generation

generate functionSun, 13 Nov 2022

limit array to less than 4

limit_array = (array) => { new_array = array.filter((item) => item < 4) return new_array } limit_array([1,2,3,4,5]) // [1,2,3]

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant