Function: isSyntheticSsn()
isSyntheticSsn(
value):boolean
Whether a ddd-dd-dddd (or ddddddddd) SSN string is drawn from an SSA never-issued / reserved
space - area 000, 666, or 900–999. A real, issuable SSN returns false.
Parameters
value
string
The candidate SSN (dashes optional).
Returns
boolean
true when the SSN is provably synthetic.
Example
import { isSyntheticSsn } from "@cosyte/synth";
isSyntheticSsn("900-12-3456"); // true (never issued)
isSyntheticSsn("123456789"); // false (issuable area 123)