-4

I inherited a project and have no idea what this does:

/\d/.test(password)

Any ideas?

j_d
  • 2,284
  • 6
  • 36
  • 74

1 Answers1

1

It checks that the password contains a digit (0-9).

slugo
  • 949
  • 2
  • 10
  • 21