• ng.Filter.credit_card is not available in the Lite version

String ng.Filter.credit_card (Mixed val, Mixed type) vs. 1.1.0 FULL ONLY

Filters a value as a credit card number based on the card type.

Parameters

Mixed val Required vs. 1.1.0 Full+Lite
The value to filter.
Mixed type Required vs. 1.1.0 Full+Lite
The credit card type. This can be a string value amex or a different credit card type (e.g. visa). It can also be an integer of the maximum numbers of digits allowed.

Return

String Required vs. 1.1.0 Full+Lite
The value filtered.

Examples

Using ng.Filter.credit_card(val, type)
Demo: