ryanve/response.js — Issue #1: Response.affix anyone?
Author: ryanve
Created: 2011-10-27 00:31:57+00:00
State: open

Response.affix is an array utility that was used within some of the other methods. But since version 0.2.7 it is no longer needed within the library, so I'm considering removing it in the next version. Any objections? I think we should keep the lib as small as possible, but if you think it would be useful to keep...

```javascript
Response.affix = function(prefix, array, suffix) {
if ( !prefix || !$.isArray(array) ) { return false; } // Quit if args are wrong.
var suffix = suffix || '';
return $.map( array, function(value) { return prefix + value + suffix; } ) // Affix each value and return array.
};// Response.affix
````