src/index.js
function save(firebaseRef) {
    return function(data, cb) {
        var firebase_update = {};
        firebase_update[data.id] = data;
        firebaseRef.update(firebase_update).then(cb);
    };
}
function save(firebaseRef) {
    return function(data, cb) {
        var firebase_update = {};
        firebase_update[data.id] = data;
        firebaseRef.update(firebase_update).then(cb);
    };
}
function save ( firebaseRef ) { return function ( data , cb ) { var firebase_update = { } ; firebase_update [ data . id ] = data ; firebaseRef . update ( firebase_update ) . then ( cb ) ; } ; }
Given a firebase ref, will return a function that will save an object. The object must have an id property

@param {Object} firebaseRef A reference to the firebase Object
@returns {Function} The save function
Given a firebase ref will return a function that will save an object . The object must have an id property