UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

51 lines 2.41 kB
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("@angular/cdk/coercion",["exports","@angular/core"],n):n(((e=e||self).ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.coercion={}),e.ng.core)}(this,(function(e,n){"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function r(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ e._isNumberValue=r,e.coerceArray=function o(e){return Array.isArray(e)?e:[e]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */,e.coerceBooleanProperty=function t(e){return null!=e&&""+e!="false"} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */,e.coerceCssPixelValue=function c(e){return null==e?"":"string"==typeof e?e:e+"px"} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */,e.coerceElement=function u(e){return e instanceof n.ElementRef?e.nativeElement:e},e.coerceNumberProperty=function i(e,n){return void 0===n&&(n=0),r(e)?Number(e):n},Object.defineProperty(e,"__esModule",{value:!0})}));