adding b as shortcut
This commit is contained in:
@ -1017,6 +1017,7 @@ export class UserAPI {
|
||||
);
|
||||
return results.some((value) => value === true);
|
||||
};
|
||||
b = this.beat;
|
||||
|
||||
public pulse = (...n: number[]): boolean => {
|
||||
const results: boolean[] = n.map(
|
||||
|
||||
@ -16,6 +16,7 @@ declare global {
|
||||
repeatPair(amount: number): T;
|
||||
repeatOdd(amount: number): T;
|
||||
beat(division: number): T;
|
||||
b(division: number): T;
|
||||
bar(): T;
|
||||
pulse(): T;
|
||||
pick(): T;
|
||||
@ -138,6 +139,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
|
||||
);
|
||||
return this[slice_count % this.length];
|
||||
};
|
||||
Array.prototype.b = Array.prototype.beat;
|
||||
|
||||
Array.prototype.shuffle = function() {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user