forked from jchomaz/Vulture
Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
21
VApp/node_modules/rxjs/dist/cjs/internal/util/args.js
generated
vendored
Normal file
21
VApp/node_modules/rxjs/dist/cjs/internal/util/args.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.popNumber = exports.popScheduler = exports.popResultSelector = void 0;
|
||||
var isFunction_1 = require("./isFunction");
|
||||
var isScheduler_1 = require("./isScheduler");
|
||||
function last(arr) {
|
||||
return arr[arr.length - 1];
|
||||
}
|
||||
function popResultSelector(args) {
|
||||
return isFunction_1.isFunction(last(args)) ? args.pop() : undefined;
|
||||
}
|
||||
exports.popResultSelector = popResultSelector;
|
||||
function popScheduler(args) {
|
||||
return isScheduler_1.isScheduler(last(args)) ? args.pop() : undefined;
|
||||
}
|
||||
exports.popScheduler = popScheduler;
|
||||
function popNumber(args, defaultValue) {
|
||||
return typeof last(args) === 'number' ? args.pop() : defaultValue;
|
||||
}
|
||||
exports.popNumber = popNumber;
|
||||
//# sourceMappingURL=args.js.map
|
||||
Reference in New Issue
Block a user