@ynmstudio/utils
Version:
YNM Utilities for Angular
29 lines (25 loc) • 1.03 kB
JavaScript
import * as i0 from '@angular/core';
import { Pipe } from '@angular/core';
import { isArray } from '@ynmstudio/utils/helpers';
class JoinPipe {
transform(input, character = '') {
if (!isArray(input)) {
return input;
}
return input.join(character);
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: JoinPipe, isStandalone: true, name: "join" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: JoinPipe, decorators: [{
type: Pipe,
args: [{
standalone: true,
name: 'join',
}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { JoinPipe };
//# sourceMappingURL=ynmstudio-utils-pipes-join.mjs.map