MDN wants to learn about developers like you:


Member since

Recent Docs Activity

View all activity
Page Date Comment

import returns a new array and does not change anything in the original array so the example usage should be similar to the one for Array.prototype.filter() (and that makes it clear it returns a new array).