MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / inRange

Function inRange

packages/shared/src/utils/validate.test.ts:11–13  ·  view source on GitHub ↗
(num: number, range: number[])

Source from the content-addressed store, hash-verified

9} from './validate';
10
11function inRange(num: number, range: number[]) {
12 return num >= range[0] && num <= range[1];
13}
14
15describe('isValidUsername', () => {
16 it('rejects strings with less than 3 characters', () => {

Callers 1

validate.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected