https://github.com/inanitionnn/currying
Task for Red Duck Software
https://github.com/inanitionnn/currying
Last synced: 3 months ago
JSON representation
Task for Red Duck Software
- Host: GitHub
- URL: https://github.com/inanitionnn/currying
- Owner: inanitionnn
- Created: 2025-03-11T08:37:16.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-11T08:39:20.000Z (3 months ago)
- Last Synced: 2025-03-11T09:35:52.153Z (3 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TwoTasks
Two easy tasks before you apply for an interview
1. Задача: не змінюючи логіки, змінити структуру коду, щоби вона відповідала принципу DRY:
ctx.prototype.**applyStyleState = function (styleState) {
var keys = Object.keys(styleState), i, key;
for (i=0; i a*b*c;
const add = (a,b,c,d,e) => a+b+c+d+e;const curry = (f) => { /_ write your solution here _/ }
curry(add)(1)(2)(3)(4)(5) == add(1,2,3,4,5) // should be true
curry(multiply)(1)(2)(3) == multiply(1,2,3) // should be trueГарного дня! :)