MCPcopy
hub / github.com/faker-js/faker / space

Method space

src/modules/color/index.ts:232–234  ·  view source on GitHub ↗

* Returns a random color space name from the worldwide accepted color spaces. * Source: https://en.wikipedia.org/wiki/List_of_color_spaces_and_their_uses * * @example * faker.color.space() // 'sRGB' * * @since 7.0.0

()

Source from the content-addressed store, hash-verified

230 * @since 7.0.0
231 */
232 space(): string {
233 return this.faker.helpers.arrayElement(this.faker.definitions.color.space);
234 }
235
236 /**
237 * Returns a random CSS-supported color function name.

Callers 1

color.spec.tsFile · 0.80

Calls 1

arrayElementMethod · 0.80

Tested by

no test coverage detected