Sha256: 950633032c6f11556e8e1bf6685bdaa0a188d09af5fd34fbc87852ce63bb36c1

Contents?: true

Size: 183 Bytes

Versions: 2

Compression:

Stored size: 183 Bytes

Contents

# frozen_string_literal: true

module EmailInquire
  module Helper

    extend self

    def first_value(array, &block)
      array.lazy.map(&block).find(&:itself)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
email_inquire-0.11.0 lib/email_inquire/helper.rb
email_inquire-0.10.0 lib/email_inquire/helper.rb