For AI agents: visit https://swiftly.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Jump to Content
SwiftlyExtSwiftlyExt
API Reference
v1.0

Fork us on GithubSwiftlyExt
API Reference
Fork us on Github
v1.0

Array

  • Instance Methods
    • chunk
    • concat
    • difference
    • differenceBy
    • differenceWith
    • drop
    • dropRight
    • dropRightWhile
    • dropWhile
    • findIndex
    • findLastIndex
    • intersection
    • intersectionBy
    • intersectionWith
    • slice

Date

  • Instance Methods
    • isAfter
    • isBefore
    • toString
    • toString
  • Properties
    • era
    • year
    • month
    • day
    • minute
    • second
    • nanosecond
    • weekday
    • weekdayOrdinal
    • quarter
    • weekOfMonth
    • weekOfYear

Int

  • digits
  • downTo
  • factorial
  • isEven
  • isIn
  • isOdd
  • times
  • upTo

String

  • date
Powered by 
  1. Int

isEven

isEven() -> Bool

Check if the integer is even.

Returns

A Boolean whether the int is even

2.isEven()
// -> true

Updated less than a minute ago


Updated less than a minute ago