# Source: types/longitude.js

    /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
    /* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */
    /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
    import {makeValidator} from './validators'

    export const Longitude = makeValidator(
        (x) => typeof x === 'number' && x <= 180.0 && x >= -180.0,
        'Not a Longitude.'
    )

    /**
     * @memberOf module:@mobify/commerce-integrations/dist/types
     * @typedef {Number} Longitude
     */