MCPcopy Index your code
hub / github.com/BrainJS/brain.js / character

Function character

test/base/likely.js:106–111  ·  view source on GitHub ↗

* Turn the # into 1s and . into 0s. for whole string * @param string * @returns {Array}

(string)

Source from the content-addressed store, hash-verified

104 * @returns {Array}
105 */
106function character(string) {
107 return string
108 .trim()
109 .split('')
110 .map(integer);
111}
112
113/**
114 * Return 0 or 1 for '#'

Callers 1

likely.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected