"Born to be chained" Kata 99% solution

I have a function to solve kata on Code Wars which is named "Born to be chained", and everything looks good, every test was passed, except the last one. "addOneArray"

I looked at the code of others, and it was identical to mine. Question is: What’s wrong with my code?

The only distinguishing feature is that a new instance is created there every time, but I have almost the same thing.
Code that passed all tests:

function chain(fns) {
        let Chain = function (val) {
          this.execute = () => val
        for (let i in fns)
          Chain.prototype[i] = function (a, b) {
            let val = this.execute(),
              args = val === null ? [a, b] : [val, a]
            return new Chain(fns[i](...args))
        return new Chain(null)

My code:

let chain = function (fns) {
  let metds = {
    execute() {
      return this.res

  for (let key in fns) {
    metds[key] = (...args) => {
      metds.res = !metds.res ? fns[key](...args) : fns[key](metds.res, ...args)
      return {

  return metds

570 thoughts on “"Born to be chained" Kata 99% solution”

  1. Excellent items from you, man. I’ve be mindful your stuff previous to and you’re simply
    extremely fantastic. I actually like what you’ve acquired right
    here, really like what you’re stating and the best way by which you are saying
    it. You make it entertaining and you still care for to stay it smart.
    I can’t wait to learn much more from you. That is really a
    terrific website. http://cleckleyfloors.com/

  2. I’ve been exploring for a bit for any high quality articles or weblog posts in this sort
    of house . Exploring in Yahoo I finally stumbled upon this web site.
    Reading this information So i am happy to convey that I’ve a very good
    uncanny feeling I discovered exactly what I needed. I such a lot undoubtedly
    will make certain to do not overlook this web site and
    provides it a look on a relentless basis. http://droga5.net/

  3. Yesterday, while I was at work, my sister stole my iphone and tested to see if
    it can survive a 25 foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views.
    I know this is entirely off topic but I had to share it
    with someone!

  4. Hey I know this is off topic but I was wondering if you knew of any widgets I
    could add to my blog that automatically tweet my
    newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some
    experience with something like this. Please let me know
    if you run into anything. I truly enjoy reading your
    blog and I look forward to your new updates. https://hhydroxychloroquine.com/

  5. Thanks for your personal marvelous posting!
    I certainly enjoyed reading it, you are a great author.
    I will remember to bookmark your blog and definitely will come back later on.
    I want to encourage continue your great posts, have a nice weekend!

    Feel free to surf to my web page … Viag Rx Review

  6. Excellent post. I was checking constantly this
    blog and I’m impressed! Extremely helpful information specially the last part
    🙂 I care for such info much. I was seeking this particular information for a long time.

    Thank you and best of luck.

    Also visit my webpage – Royal Derma Cream

  7. I tend not to drop a comment, however after reading a ton of remarks here
    "Born to be chained" Kata 99% solution – JavaScript Help.
    I actually do have some questions for you if you do not mind.
    Could it be simply me or does it seem like a few of the responses appear like they are coming from brain dead individuals?

    😛 And, if you are posting on additional places,
    I’d like to follow anything new you have to post. Could you
    list of every one of all your social networking sites like your linkedin profile,
    Facebook page or twitter feed?

    My web-site … BodyCore Keto Reviews

  8. I’d like to thank you for the efforts you have put in writing this
    blog. I’m hoping to view the same high-grade
    content from you in the future as well. In fact, your creative writing abilities
    has inspired me to get my very own blog now 😉

    my web page … 3DS Pills

  9. Thanks so much regarding giving everyone an update on this matter on your website.
    Please realise that if a new post becomes available or in the event any improvements occur to the current submission, I would be considering reading more
    and learning how to make good use of those strategies you discuss.
    Thanks for your efforts and consideration of other individuals by making this website available.

    Also visit my web site :: Rhino Spark Reviews (Lakeisha)

  10. Hi, I do think this is a great website. I stumbledupon it
    😉 I may revisit once again since i have bookmarked it.
    Money and freedom is the greatest way to change, may you be rich and
    continue to help other people.

    Feel free to visit my blog – Cesar

  11. An impressive share! I’ve just forwarded this onto a coworker who has been doing a little
    research on this. And he in fact bought me breakfast due to the fact that
    I found it for him… lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending the time to discuss this issue here on your site.

  12. Hey there would you mind sharing which blog
    platform you’re working with? I’m planning to start my own blog soon but I’m having
    a hard time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different
    then most blogs and I’m looking for something unique.
    P.S Sorry for getting off-topic but I had to ask!

  13. Thanks a lot for providing individuals with such a remarkable chance
    to read articles and blog posts from here. It can be very pleasant and
    also stuffed with a good time for me and my office acquaintances to visit your blog nearly thrice in a week
    to read the new items you have got. And of course, I’m just actually motivated concerning the
    fantastic guidelines served by you. Selected two areas in this post are really the very
    best we have all had.

    Also visit my web-site bbs.yunweishidai.com

  14. Hiya, I am really glad I have found this info. Nowadays bloggers publish just about gossips and net and this is
    actually frustrating. A good website with exciting content, this is what I need.
    Thank you for keeping this site, I will be visiting
    it. Do you do newsletters? Can’t find it.

    Here is my web page USlim X Keto BHB Review

  15. Oh my goodness! Awesome article dude! Thank you, However I
    am having troubles with your RSS. I don?t know why I can’t join it.
    Is there anybody having the same RSS issues? Anyone who knows the answer will you kindly respond?

    Here is my web site: Pellamore Cream

  16. Hello there, I found your website by way of Google even as searching for a comparable subject, your website
    came up, it appears great. I’ve bookmarked it in my google bookmarks.[X-N-E-W-L-I-N-S-P-I-N-X]Hello
    there, just became aware of your blog via Google, and located that it’s truly informative.
    I am gonna be careful for brussels. I will be grateful for those who continue this in future.
    Lots of other folks shall be benefited from your writing.

    Visit my webpage … Libido Boost Male Enhancement Review

  17. Have you ever thought about publishing an ebook or guest authoring on other sites?

    I have a blog centered on the same topics you discuss and would really like to have you share some stories/information. I know my visitors would appreciate
    your work. If you’re even remotely interested,
    feel free to send me an e mail.

    Visit my website: Hempizor CBD Oil

  18. pharmacie alery annecy pharmacie de garde marseille 13014 aujourd’hui , pharmacie ouverte beaulieu pharmacie tanguy annecy , Zyrtec en farmacia Guatemala, Comprar Zyrtec medicamento. Comprar Zyrtec sin receta Comprar Zyrtec genГ©rico [url=https://kit.co/tiotoda/zyrtec-en-farmacia-guatemala-comprar-zyrtec-medicamento#]Comprar Zyrtec sin receta[/url] pharmacie lafayette belfort Comprar Tamiflu genГ©rico, DГіnde comprar Tamiflu 75 mg. Tamiflu en farmacia Argentina Comprar Tamiflu genГ©rico [url=https://kit.co/nemitech/comprar-tamiflu-generico-comprar-tamiflu-medicamento#]Tamiflu en farmacia Argentina[/url] , pharmacie brest keredern pharmacie en ligne espagne levothyrox , therapie vice streaming. pharmacie autour de ma position therapie de couple toulouse Comprar Paroxetina medicamento, DГіnde comprar Paroxetina pastillas. Paroxetina en farmacia PerГє Comprar Paroxetina genГ©rico [url=https://kit.co/untuge/comprar-paroxetina-medicamento-paroxetina-venta-online#]Paroxetina Paxil pastillas[/url] , pharmacie en ligne wattrelos. salon des therapies alternatives lorient, pharmacie de garde beauvais aujourd’hui pharmacie vernet avignon . pharmacie beaulieu 17, therapie cognitivo-comportementale casablanca traitement johnson medicaments hypolipemiants .

  19. It is actually a great and helpful piece of information. I am satisfied that you just shared this
    useful information with us. Please keep us up to date like this.
    Thank you for sharing.

  20. Hey very cool web site!! Man .. Beautiful .. Amazing .. I’ll bookmark your blog
    and take the feeds additionally? I’m glad to seek out a lot
    of helpful information right here in the submit, we want develop more
    techniques in this regard, thank you for sharing.
    . . . . .

    Also visit my web site: hypnotronstudios.com

  21. What i don’t understood is if truth be told how you’re now not really much more neatly-appreciated than you may be now.
    You’re very intelligent. You realize therefore
    considerably on the subject of this subject, produced me personally
    believe it from a lot of varied angles. Its like women and men aren’t involved until it’s
    something to accomplish with Woman gaga! Your own stuffs
    outstanding. At all times handle it up!

  22. Excellent post. I was checking continuously this blog and I’m impressed!
    Extremely helpful information specially the last part
    🙂 I care for such information much. I was looking for this
    certain info for a long time. Thank you and good luck.

  23. I truly love your site.. Great colors & theme. Did you make
    this site yourself? Please reply back as I’m hoping to create
    my own personal site and would love to find out where you got this from or just what the
    theme is named. Appreciate it!

    Also visit my web page; Peggy

  24. Have you ever thought about writing an e-book or guest authoring on other blogs?
    I have a blog based upon on the same subjects you discuss
    and would love to have you share some stories/information. I know my readers would appreciate your work.
    If you’re even remotely interested, feel free to send me an e-mail.

  25. Oh my goodness! Amazing article dude! Thank you so much, However I am
    going through problems with your RSS. I don?t know why I am unable to join it.
    Is there anybody else having identical RSS problems? Anybody who
    knows the solution can you kindly respond? Thanks!!

    Look into my homepage – Iva

  26. Appreciating the hard work you put into your website and
    in depth information you offer. It’s good to come across a blog every
    once in a while that isn’t the same outdated rehashed information. Great read!
    I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  27. Hey I am so happy I found your blog page, I really found you by error, while I was browsing on Askjeeve for something else,
    Nonetheless I am here now and would just like to say kudos for a
    incredible post and a all round enjoyable blog (I also love the theme/design), I
    don’t have time to look over it all at the moment but I have
    bookmarked it and also added your RSS feeds, so when I have time
    I will be back to read more, Please do keep up the excellent

    Feel free to surf to my page – Ilok Air

  28. Write more, thats all I have to say. Literally, it seems as though
    you relied on the video to make your point. You clearly know what youre talking
    about, why waste your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  29. Hi are using WordPress for your site platform?
    I’m new to the blog world but I’m trying to get started and set up my
    own. Do you need any html coding knowledge to make your own blog?

    Any help would be really appreciated!

  30. After checking out a number of the blog articles on your site, I seriously
    like your technique of blogging. I saved as a
    favorite it to my bookmark webpage list and
    will be checking back in the near future. Please check out my web
    site too and let me know your opinion.

    my site; http://www.hltkd.tw

  31. My brother suggested I would possibly like this blog.

    He used to be entirely right. This publish actually made my day.
    You cann’t consider just how so much time I had spent for this information! Thank you!

  32. I do not know if it’s just me or if perhaps everyone else experiencing problems with your website.
    It looks like some of the text on your posts are running off the screen. Can someone
    else please comment and let me know if this is happening to them
    too? This could be a problem with my web browser because I’ve had this happen previously.

    Thank you

    Also visit my web site; oxygen concentrators

  33. I’ve been exploring for a little for any high quality articles or weblog
    posts in this sort of house . Exploring in Yahoo I eventually stumbled upon this web site.
    Studying this information So i’m glad to exhibit that I’ve an incredibly just
    right uncanny feeling I found out just what I needed. I so much indisputably will
    make certain to don’t disregard this website and provides it
    a glance on a relentless basis.

    Check out my page – healthy weight loss

  34. This is the perfect web site for anybody who really wants to understand this topic.
    You know a whole lot its almost tough to argue with you (not that I really would
    want to?HaHa). You definitely put a fresh spin on a topic that’s been discussed for a long time.

    Great stuff, just great!

    my site … eating diet plan

  35. [url=https://ivermectingd.quest/]stromectol 3 mg tablets price[/url] [url=https://zanaflex.guru/]zanaflex for migraines[/url] [url=https://ivermectinuw.monster/]ivermectin 0.1 uk[/url] [url=https://finasteride.solutions/]generic for propecia[/url] [url=https://lisinopril.company/]zestoretic 20 25 mg[/url] [url=https://suhagra.agency/]generic suhagra[/url]

  36. I feel this is among the such a lot significant info for me.
    And i am satisfied studying your article. However should remark on few general issues, The web site style is perfect, the articles is truly excellent : D.
    Just right job, cheers

  37. Howdy! I could have sworn I’ve been to this website before but after reading through some of the post I realized it’s new
    to me. Anyhow, I’m definitely glad I found it and I’ll be book-marking and checking back often!

  38. Having read this I believed it was really enlightening. I appreciate
    you taking the time and effort to put this short article together.

    I once again find myself spending a lot of time both
    reading and commenting. But so what, it was still worth it!

  39. With havin so much content do you ever run into any problems of plagorism or copyright
    infringement? My blog has a lot of exclusive
    content I’ve either authored myself or outsourced but it
    seems a lot of it is popping it up all over the internet without my
    agreement. Do you know any methods to help reduce content from being stolen? I’d definitely appreciate it.

  40. I know this if off topic but I’m looking into starting my
    own weblog and was curious what all is needed to get setup?
    I’m assuming having a blog like yours would cost a
    pretty penny? I’m not very web savvy so I’m not 100% certain. Any suggestions or
    advice would be greatly appreciated. Thank you

  41. [url=https://trental.fun/]trental generic[/url] [url=https://onlinepharmacy.ink/]best rx pharmacy online[/url] [url=https://furosemide.boutique/]furosemide 3169[/url] [url=https://xenical.fun/]orlistat tablets in india[/url] [url=https://budesonide.xyz/]budecort price[/url] [url=https://modafinil.pics/]how to get modafinil uk[/url]

  42. Just want to say your article is as amazing.
    The clearness for your post is simply spectacular
    and i could assume you’re a professional in this subject.

    Fine along with your permission let me to grasp your RSS feed to stay
    up to date with forthcoming post. Thanks 1,000,000 and please carry on the gratifying work.

  43. Hey there just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Ie.
    I’m not sure if this is a formatting issue or
    something to do with web browser compatibility but I thought I’d post to
    let you know. The layout look great though!
    Hope you get the issue solved soon. Cheers

  44. My programmer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using WordPress
    on various websites for about a year and am
    worried about switching to another platform. I have heard very good things about
    blogengine.net. Is there a way I can transfer all my wordpress content into it?

    Any help would be greatly appreciated!