How to use the ssn function from chance
Find comprehensive JavaScript chance.ssn code examples handpicked from public code repositorys.
21 22 23 24 25 26 27 28 29
last: chance.last(), age: chance.age(), birthday: chance.birthday({string: true, american: true}), gender: gender, zip: chance.zip({plusfour: true}), ssnFour: chance.ssn({ ssnFour: true }), phone: chance.phone(), email: chance.email() }
0
1
0
20 21 22 23 24 25 26 27 28 29
.then(() => { const lastNames = ['Doggo', 'Pupster', 'Smith', 'Wolf'] const puppies = longArray(100).map(() => { const first = chance.first() const last = lastNames[Math.floor(Math.random() * 4)] const ssn = chance.ssn() const callsign = chance.radio() const age = Math.floor(chance.age() / 7) const insertQuery = `INSERT INTO Puppy (
0
1
1
+ 5 other calls in file
chance.word is the most popular function in chance (344 examples)