Skip to content

Instantly share code, notes, and snippets.

@amuradyan
Last active December 6, 2022 09:57
Show Gist options
  • Save amuradyan/3325839d9a7e3783b3116b80402a2af0 to your computer and use it in GitHub Desktop.
Save amuradyan/3325839d9a7e3783b3116b80402a2af0 to your computer and use it in GitHub Desktop.
const mitq = "Արժի մի հատ պռոեկտ սարքել, սաղ հայերեն տեքստերը վերցնել, վերջավորությունները ըղձական ապառնու փոխել ու տպել"
const poxac_mitq = mitq
.split(" ")
.reduce((masnaki_poxac_mitq, bar) => {
const poxac_bar = bar.replace("ել", "ած")
return `${masnaki_poxac_mitq} ${poxac_bar}`
})
console.log(poxac_mitq)
// [LOG]: "Արժի մի հատ պռոեկտ սարքած, սաղ հայերեն տեքստերը վերցնած, վերջավորությունները ըղձական ապառնու փոխած ու տպած"
@antaranyan
Copy link

այտինքտ (այդինքդ)

@amuradyan
Copy link
Author

հա բայց չոտկի չջոգիմ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment