Array
@frozen
extension Array where Element: Decodable
-
Undocumented
Declaration
Swift
public static func decode(_ j: Any, ignoreInvalidObjects: Bool = false) throws -> [Element]
-
Creates an array decoder from an element decoder
This function is used by
=>and=>?overloads when decoding[T]Throws
ifNSArray.decodethrows or any element decode closure throwsDeclaration
Swift
public static func decoder(_ elementDecoder: @escaping (Any) throws -> Element) -> (Any) throws -> Array<Element>Parameters
elementDecoderA decoder (decode closure) for the
ElementtypeReturn Value
A closure that takes an
NSArrayand maps it using the element decode closure
Array Extension Reference