const generationLetters = (func) => {
if (someLetters.length === 5) return someLetters;
const current = String.fromCharCode(func(97, 122)).toLocaleUpperCase()
someLetters.includes(current)
? generationLetters(func)
: someLetters.push(current)
return generationLetters(func)
}
Array.from(wrap)
Array.from(letter)
<Router>
<div>
<nav>
<ul>
<li>
<Link to="/api.model">Car</Link>
</li>
</ul>
</nav>
<Switch>
<Route path="api.model">
<Car />
</Route>
</Switch>
</div>
</Router>
const history = useHistory
history.push(api.model/car)
const data = [
{
title: 'some text1',
id: '01',
type: 'search',
fieldsSearch: [
{
value: 'this value',
id: '001'
}
]
},
{
title: 'some text2',
id: '02',
type: 'checkbox',
fieldsCheckbox: [
{
checked: true,
id: '002',
title: 'another text'
}
]
}
]
fieldsCheckbox: [
{
checked: true,
id: '002',
title: 'another text'
}
]
Допустил описку.