src/index.js
function all(firebaseRef) {
    return function(cb) {
        firebaseRef.once('value').then(function success(records) {
            var results = records.val();

            if (!results) {
                return cb(null, []);
            }

            var list = Object.keys(results).map(function(key) {
                return results[key];
            });

            cb(null, list);
        }, cb);
    };
}
function all(firebaseRef) {
    return function(cb) {
        firebaseRef.once('value').then(function success(records) {
            var results = records.val();

            if (!results) {
                return cb(null, []);
            }

            var list = Object.keys(results).map(function(key) {
                return results[key];
            });

            cb(null, list);
        }, cb);
    };
}
function all ( firebaseRef ) { return function ( cb ) { firebaseRef . once ( 'value' ) . then ( function success ( records ) { var results = records . val ( ) ; if ( ! results ) { return cb ( null , [ ] ) ; } var list = Object . keys ( results ) . map ( function ( key ) { return results [ key ] ; } ) ; cb ( null , list ) ; } , cb ) ; } ; }
Given a firebase ref, will return a function that will return all objects stored.

@param {Object} firebaseRef A reference to the firebase Object
@returns {Function} The all function
Given a firebase ref will return a function that will return all objects stored .