DEV Community

GaurangDhorda
GaurangDhorda

Posted on

Why Splice removes only last element when array elements are the same

Go to this StackBlitz Link (Not Working)

Go to this StackBlitz Link (Working Fine)

My question is about Array.splice Array.splice is working fine when array data are different but when data of array are of the same kind, Array.splice removes only the last index. In…

Top comments (0)