const array = [{ title: 'one' }, { title: 'two' }, { title: 'three' }]
var updates = {};
array.map(item => {
var newPostKey = firebase.database().ref().child(`boards/${boardId}/containers/`).push().key;
updates[`boards/${boardId}/containers/` + newPostKey] = item;
});
firebase.database().ref().update(updates);