- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
613 B
JavaScript
26 lines
613 B
JavaScript
/*!
|
|
* collection-map <https://github.com/jonschlinkert/collection-map>
|
|
*
|
|
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var makeIterator = require('make-iterator');
|
|
var forOwn = require('for-own');
|
|
var map = require('arr-map');
|
|
|
|
module.exports = function(collection, fn, thisArg) {
|
|
if (!Array.isArray(collection)) {
|
|
var iterator = makeIterator(fn, thisArg);
|
|
var result = [];
|
|
|
|
forOwn(collection, function(value, key) {
|
|
result.push(iterator(value, key, collection));
|
|
});
|
|
return result;
|
|
}
|
|
return map(collection, fn, thisArg);
|
|
};
|