Link linguist
Link article
- actionscript3
- apache
// array to hash for search | |
const users = []; | |
const products = []; | |
const elem = 10; | |
const keyBy = (arr, key) => arr.reduce((acc, el) => { | |
//console.log('acc', acc); | |
//console.log('acc[el]', el); | |
//console.log('acc[el[key]]', el[key]); |
const capitalize = str => ( | |
str.replace(/\w\S*/g, txt => | |
txt.charAt(0) | |
.toUpperCase() + txt.substr(1).toLowerCase()) | |
); | |
const users = [{ | |
id: 1, name: 'joalbert', surname: 'gonzález' | |
}]; |
// 1-basic | |
console.log('++++++++++++++++++++++++++++++++++++++++++++++++++'); | |
const count = (() => { | |
let currentValue = 0; | |
return () => currentValue += 1; | |
})(); | |
console.log('count:', count()); //1 | |
console.log('count:', count()); //2 | |
console.log('count:', count()); //3 |
export const messages = { | |
allDay: 'Todo el día', | |
previous: '<', | |
next: '>', | |
today: 'Hoy', | |
month: 'Mes', | |
week: 'Semana', | |
day: 'Día', | |
agenda: 'Agenda', | |
date: 'Fecha', |
/* | |
* In the following 6 digit number: | |
* 283910 | |
* 91 is the greatest sequence of 2 consecutive digits. | |
* | |
* In the following 10 digit number: | |
* 1234567890 | |
* 67890 is the greatest sequence of 5 consecutive digits. | |
* | |
* Complete the solution so that it returns the greatest sequence |