src/index.js
function save(datastore, kind, namespace) {
    return function(data, cb) {
        var keyParam = [kind, data.id];
        if (namespace) {
            keyParam = {
                namespace: namespace,
                path: keyParam
            };
        }
        var key = datastore.key(keyParam);
        datastore.save({key: key, data: data}, cb);
    };
}
function save(datastore, kind, namespace) {
    return function(data, cb) {
        var keyParam = [kind, data.id];
        if (namespace) {
            keyParam = {
                namespace: namespace,
                path: keyParam
            };
        }
        var key = datastore.key(keyParam);
        datastore.save({key: key, data: data}, cb);
    };
}
function save ( datastore , kind , namespace ) { return function ( data , cb ) { var keyParam = [ kind , data . id ] ; if ( namespace ) { keyParam = { namespace : namespace , path : keyParam } ; } var key = datastore . key ( keyParam ) ; datastore . save ( { key : key , data : data } , cb ) ; } ; }
Given a datastore reference and a kind, will return a function that will save an entity.
The object must have an id property

@param {Object} datastore A reference to the datastore Object
@param {String} kind The entity kind
@returns {Function} The save function
Given a datastore reference and a kind will return a function that will save an entity . The object must have an id property