Skip to content

Commit

Permalink
move the CJS example
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Feb 14, 2024
1 parent deef35f commit c842c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/unique.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const name = faker.helpers.unique(faker.person.firstName);
import {
UniqueEnforcer
} from 'enforce-unique';
//const { UniqueEnforcer } = require("enforce-unique") //CJS
const enforcerName = new UniqueEnforcer();
const name = enforcerName.enforce(faker.person.firstName);
```
Expand All @@ -90,7 +91,6 @@ const stateCode = faker.helpers.unique(faker.location.state, [
import {
UniqueEnforcer
} from 'enforce-unique';
//const { UniqueEnforcer } = require("enforce-unique") //CJS

const enforcerState = new UniqueEnforcer();
const stateCode = enforcerState.enforce(() => {
Expand Down

0 comments on commit c842c3b

Please sign in to comment.