Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
JavaScript arrays - original array modification vs new array creating methods

is there a rule which explains why some methods are modifying original arrays (like splice, push, etc) and other creates new array (like slice, map, concat, etc)?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Nope, there is no rule specifying which array methods will modify the callee array or which will return a new array.

They are simple functions, having their own behavior, you just have to remember their behaviors and you always have the web to lookup stuff.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!