Shouldn't this be named CRUD builder?

On 03/31/2014 02:46 PM, Evgeniy Vasilev wrote:
> In lib/curdBuilder.js:
>
>> +	if (object.hasOwnProperty('id') && id) {
>> +		object.id = id;
>> +	}
>> +
>> +	return object;
>> +}
>> +
>> +/**
>> + * @desc Sends response to to client
>> + * @param res {object} - http response object
>> + * @param code {number} - http status code
>> + * @param data {object} - data object send to client
>> + */
>> +
>> +function sendResponse(res, code, data) {
>> +	data = JSON.stringify(data);
>
> What will happen if |data| is |undefined| ?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Wikia/interactive-maps/pull/13/files#r11113448>.
>