@buffedapi/ruby-methods

Some useful ruby-like methods to use in JS

Usage no npm install needed!

<script type="module">
  import buffedapiRubyMethods from 'https://cdn.skypack.dev/@buffedapi/ruby-methods';
</script>

README

Introduction

Included in this package are some useful methods borrowed from ruby, like the .try method, and the .first method on Array Prototype.

The .try method has been borrowed from js-try, but altered to return null instead of false upon failure.