m3dev/SafeArray


License
MIT

Documentation

SafeArray

Features

  • safe get to Array

Requirements

  • iOS 8.0+
  • Xcode 7.3+

Communication

  • If you need help, use Stack Overflow.
  • If you'd like to ask a general question, use Stack Overflow.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'SafeArray', :git => 'https://github.com/bloodysnowx/SafeArray.git'
end

Then, run the following command:

$ pod install

Usage

import SafeArray

[1, 2, 3][safe: 0] // -> 1
[4, 5, 6][safe: 3] // -> nil

License

is released under the MIT license. See LICENSE for details.