UNPKG
strapi-plugin-migrate
Version:
alpha (3.6.41)
latest (3.6.3)
3.6.41
3.6.25
3.6.24
3.6.23
3.6.22
3.6.21
3.6.4
3.6.3
3.6.2
3.5.30
3.5.20
3.5.3
3.5.2
3.5.0
3.1.0
3.0.3
3.0.1
3.0.0
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
Strapi Content Migration.
github.com/ijsto/strapi-plugin-migrate
ijsto/strapi-plugin-migrate
strapi-plugin-migrate
/
admin
/
src
/
utils
/
helpers.js
12 lines
(11 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
const
updateObjectInArrayByType = (array, objectChanges) => {
return
array.
map
(obj => {
if
(obj.
type
!== objectChanges.
type
) {
return
obj; }
return
{ ...obj, ...objectChanges, }; }); };