shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
isCreditCard
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is
Check if the passed value is a valid credit card number
Params
- value*-Mixed
The value to check
Return
- -Boolean
The check result
Example
import {isCreditCard } from '@blackbyte/sugar/is';
isCreditCard('john.doe@gmail.com') => true
isCreditCard('plop@yop.com') => true
isCreditCard('hello') => false
isCreditCard('378282246310006') => trueTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space