Suppose I have an object with 10 key values,
const detail = {'a':1,'b':2,'c':3,'d':4,'e':5,'f':6,'g':7,'h':8,'i':9,'j':10}
I only want to get first 5 key values from object,
**{'a':1,'b':2,'c':3,'d':4,'e':5}**
Like we can slice in array and get first 5 elements, is it possible to do something for the same.
I tried looking for solution, but was unable to find anything related to it.
Any help would really be helpful. If anyone needs any moew details please let me know.