Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
No EOL
500 B
Text
15 lines
No EOL
500 B
Text
import { isFunction } from './isFunction';
|
|
import { isScheduler } from './isScheduler';
|
|
function last(arr) {
|
|
return arr[arr.length - 1];
|
|
}
|
|
export function popResultSelector(args) {
|
|
return isFunction(last(args)) ? args.pop() : undefined;
|
|
}
|
|
export function popScheduler(args) {
|
|
return isScheduler(last(args)) ? args.pop() : undefined;
|
|
}
|
|
export function popNumber(args, defaultValue) {
|
|
return typeof last(args) === 'number' ? args.pop() : defaultValue;
|
|
}
|
|
//# sourceMappingURL=args.js.map |