first
This commit is contained in:
7
commons/utils/returrn-data.js
Normal file
7
commons/utils/returrn-data.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export const objToArrary = (obj,keyNewName) => {
|
||||
return Object.entries(obj).map(([key, value]) => ({
|
||||
key,
|
||||
[keyNewName]:key,
|
||||
...value,
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user