lib/loaders/array.js
function ArrayLoader(posts) {
    var self = this;
    posts.forEach(function (post, index) {
        if (!('id' in post)) {
            post.id = index;
        }
    });
    process.nextTick(function () {
        self.emit('load', posts);
    });
}
function ArrayLoader(posts) {
    var self = this;
    posts.forEach(function (post, index) {
        if (!('id' in post)) {
            post.id = index;
        }
    });
    process.nextTick(function () {
        self.emit('load', posts);
    });
}
function ArrayLoader ( posts ) { var self = this ; posts . forEach ( function ( post , index ) { if ( ! ( 'id' in post ) ) { post . id = index ; } } ) ; process . nextTick ( function ( ) { self . emit ( 'load' , posts ) ; } ) ; }
Create a new array loader.

@param {Array} posts
Create a new array loader .