- 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>
22 lines
517 B
JavaScript
22 lines
517 B
JavaScript
/*!
|
|
* array-initial <https://github.com/jonschlinkert/array-initial>
|
|
*
|
|
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
|
* Licensed under the MIT license.
|
|
*/
|
|
|
|
var isNumber = require('is-number');
|
|
var slice = require('array-slice');
|
|
|
|
module.exports = function arrayInitial(arr, num) {
|
|
if (!Array.isArray(arr)) {
|
|
throw new Error('array-initial expects an array as the first argument.');
|
|
}
|
|
|
|
if (arr.length === 0) {
|
|
return null;
|
|
}
|
|
|
|
return slice(arr, 0, arr.length - (isNumber(num) ? num : 1));
|
|
};
|