chris

node v10.24.1
version: 1.0.0
endpointsharetweet
const {isEqual,uniq, filter, find, cloneDeep, uniqWith} = require('lodash') const moment = require('moment') const physicalRoomBookings = [ {id: 1, bookingId: 1, physicalRoomId: null}, {id: 2, bookingId: 2 , physicalRoomId: null}, {id: 3, bookingId: 3, physicalRoomId: null} ] const physicalRoomIds = [ 1, 2, 3 ] for (var i = 0; i < physicalRoomBookings.length; i++) { physicalRoomBookings[i].physicalRoomId = physicalRoomIds[i] } console.log("physicalRoomBookings->", physicalRoomBookings)
Loading…

no comments

    sign in to comment